the5fire / typeidea

Django企业开发实战对应项目代码
http://django-practice-book.com/
Other
439 stars 214 forks source link

./manage.py makemigrations 错误问题, #21

Closed aladdingsw closed 4 years ago

aladdingsw commented 5 years ago

使用./manage.py makemigrations 错误问题,后出现ModuleNotFoundError: No module named 'typeidea.typeidea' 错误

图片
sailorlisa commented 5 years ago

图片挂了,可以重新发图片吗?或者贴代码?

xueanguo commented 5 years ago

ModuleNotFoundError: No module named 'typeidea.blog'

the5fire commented 5 years ago

@sailorlisa 不应该出现 typeidea.typeidea 这样的引用。贴下你的 settings/base.py 或者 settings.py 看看。

@xueanguo 也可以贴一下。

sailorlisa commented 5 years ago

我的settings/base.py ↓ https://github.com/sailorlisa/typeidea/blob/master/typeidea/typeidea/settings/base.py

@aladdingsw 请去链接参考。

MaoningGuan commented 4 years ago

ModuleNotFoundError: No module named 'typeidea.blog'

ModuleNotFoundError: No module named 'typeidea.typeidea'


这些引用路径直接改为:

'typeidea.blog' --->  'blog'
'typeidea.typeidea' ----> 'typeidea'

直接从APP的目录开始引用就可以了。