Quick Start for Django

  • Step 1. Install the pyuploadcare library.

    pip install pyuploadcare
  • Step 2. Add authentication settings to your settings.py, check out this section to learn more:

    UPLOADCARE = {
        '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 in our pyuploadcare docs. In case of any questions, you can ask those around our community area or directly via email.

We’re always happy to help with code, integration, and other stuff. Search our site for more info or post your question in our Community Area.