Django:syncdb 中跳过了应用程序
我在 settings.py 中声明了多个应用程序:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.messages',
'authentication',
'catalogs',
'configurations',
...
)
运行 syncdb
时,会跳过 authentication
应用程序,并且不会创建其表,但我没有收到错误。
其他应用都没问题。
我认为某些错误会阻止应用程序正常运行。
对吗?怎么调试呢?
谢谢
I have several applications declared in settings.py:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.messages',
'authentication',
'catalogs',
'configurations',
...
)
When running syncdb
the authentication
application is skipped and its tables are not created, but I get no error.
The other applications are ok.
I think that some error prevents the application to be run properly.
Is it right? How can debug it?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了它!我的代码确实有错误。
只需运行
manage.py shell
并请求fromauthentication.models import *
就会引发错误。I got it! There was indeed an error in my code.
Just running
manage.py shell
and asking forfrom authentication.models import *
made the error raise.