0

I am developing app that uses Cloudinary, using Django 1.8. I downloaded the sample project from https://github.com/cloudinary/cloudinary-django-sample. This line: image = CloudinaryField('image')

causes an error when runnig "manage.py migrate" saying

django.db.utils.OperationalError: near "None": syntax error

Tried adding "null=True" and "blank=True" to the field definition

image = CloudinaryField('image', null=True, blank=True)

but I am getting the same result. I import cloudinafield like this

from cloudinary.models import CloudinaryField

When I comment out the line with CloudinadyField there are no errors. What can be the reason of this error?

2 Answers2

0

Well, there is no such field type like the one you used.

For handling image you can either use CharField to store the url or use FileField to store the file key which will link the url.

You can find detailed configuration on this page.

Shivani Sharma
  • 697
  • 1
  • 7
  • 22
0

I feel like an idiot, just updated cloudinary library to 1.1.3 and everything works fine now. Thanks Tal Lev-Ami