1

我不知道发生了什么,但突然 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 ”时也是如此。

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

4

0 回答 0