1
创建超级用户每次我试图创建一个数据库出现这种情况无法在Django
C:\Users\Admin8085\Desktop\src>python manage.py syncdb
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
You just installed Django's auth system, which means you don't have any superuse
rs defined.
Would you like to create one now? (yes/no): yes
Please enter either "yes" or "no": yes
Please enter either "yes" or "no": yes
Please enter either "yes" or "no": yes
Please enter either "yes" or "no": 'yes'
Please enter either "yes" or "no": yes
Please enter either "yes" or "no":
我没有这个行为的答案,但你可以做的一件事是,在这里说'不',然后做'python manage.py createsuperuser' – karthikr
要么我输入'是'或'否'没有什么工作 – Yogeshwar
中止这个过程,并执行'python manage.py syncdb --noinput'然后,'python manage.py createuser'。我的猜测是,它与数据库写入权限或某事有关 – karthikr