开发者

Django: application skipped in syncdb

开发者 https://www.devze.com 2023-02-22 09:03 出处:网络
I h开发者_如何转开发ave several applications declared in settings.py: INSTALLED_APPS = ( \'django.contrib.auth\',

I h开发者_如何转开发ave 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


I got it! There was indeed an error in my code.

Just running manage.py shell and asking for from authentication.models import * made the error raise.

0

精彩评论

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

关注公众号