开发者

Installing modules for Bitnami Django Stack

I have installed Bitnami Django Stack on my windows machine. Now I have to extend an existing Django project. When I tried to run the project using manage.py runserver it gave me modules error. So I installed all the required modules in C:\Program Files\BitNami DjangoStack\apps folder.

Now When I run the manage.py runserver command it is giving me attribute errors. These errors are related to installed modules.开发者_如何学Go

My question is that How can I verify If I have installed the modules correctly?


You have to import ImageField from sorl.thumbnail- not import thumbnail module.

from sorl.thumbnail import ImageField
#...
class Profile(models.Model):
    photo = ImageField(..)

Example in documentation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜