在django-nonrel中创建超级用户

ial*_*ali 5 google-app-engine django-nonrel

我是一个新手,正在浏览django-nonrel教程,并在Google App Engine中设置了django-nonrel.

我现在正在尝试使用以下方法创建超级用户:

manage.py createsuperuser --username = joe --email=joe@example.com

我明白了

未知命令:'createsuperuser'输入
'manage.py help'以供使用

当我输入manage.py help时,我没有看到createduperuser列出.

救命.

ial*_*ali 12

解决了这个问题.对于其他有相同问题的人,为了让管理员工作:

1)确保您的settings.py中的django.contrib.auth是installed_apps部分

2)停止runserver,然后使用manage.py createsuperuser创建超级用户.
在创建超级用户之后,再次启动runserver.