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': 'demopublickey',
        'secret': 'demoprivatekey',
  • 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.

If you haven't found what you were looking for in these docs, try looking in our Knowledge Base.