Django 1.5.4 auth - syncdb或createsuperuser时出错

时间:2013-10-04 13:23:53

标签: django django-authentication

我不知道发生了什么,但突然syncdb停止工作。

当我打电话给“ python manage.py syncdb ”时,我会收到这样的消息:

Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
... (my apps)

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username: m
Email address: m@m.com
First name: m
Last name: m
Password: 
Password (again): 
DoesNotExist: Group matching query does not exist.

当我打电话给“ python manage.py createsuperuser ”时也一样。

用户已创建,我可以登录,但没有任何权利。我也无法浏览管理页面(显示登录窗口)。什么可能是错的?

0 个答案:

没有答案