[英]Django: Migrations not recognizing cloudinary?
Hey I am trying to replace storing files to using cloudinary in my django app. 嘿,我正在尝试将存储文件替换为在Django应用中使用cloudinary。 I add
我加
image2 = CloudinaryField('image')
to my models.py and run make migrations but nothing happens. 到我的models.py并运行进行迁移,但没有任何反应。 Then when I run the server I get the error that image2 column does not exist.
然后,当我运行服务器时,我得到了image2列不存在的错误。 anyonee know what is gong on?
有人知道锣在做什么吗?
The following steps should work for you: 以下步骤应该为您工作:
image2 = CloudinaryField('image')
to your models.py
file image2 = CloudinaryField('image')
到您的models.py
文件中 Make sure you run the migrate
instruction as well 确保您也运行
migrate
指令
` `
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.