Quick Start for Django

  • Step 1. Install the pyuploadcare library.

    pip install pyuploadcare
  • Step 2. Add authentication settings to your settings.py file:

        'pub_key': '',
        'secret': '',
  • Step 3. Use pyuploadcare.dj.FileField in any model. No arguments needed!

    from django.db import models

    from pyuploadcare.dj import FileField

    class Photo(models.Model):
        title = models.CharField(max_length=255)
        photo = FileField()

Read more at pyuploadcare docs.


We're always happy to help with code or other questions you might have! Search our site for more information or send us an email!