开发者

Installing modules for Bitnami Django Stack

开发者 https://www.devze.com 2023-03-19 19:11 出处:网络
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 i

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

精彩评论

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