简体   繁体   中英

Django: Migrations not recognizing cloudinary?

Hey I am trying to replace storing files to using cloudinary in my django app. I add

image2 = CloudinaryField('image')

to my models.py and run make migrations but nothing happens. Then when I run the server I get the error that image2 column does not exist. anyonee know what is gong on?

The following steps should work for you:

  1. Adding image2 = CloudinaryField('image') to your models.py file
  2. ./manage.py makemigrations myapp
  3. ./manage.py migrate myapp

Make sure you run the migrate instruction as well

`

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM