$ python manage.py createsuperuser

报错:

django.db.utils.OperationalError: no such table: auth_user

解决方案:

python manage.py migrate

再次执行命令:

$ python manage.py createsuperuser
Username (leave blank to use 'book'):     
Email address: book@book.com
Password: 
Password (again): 
This password is too short. It must contain at least 8 characters.
This password is too common.
This password is entirely numeric.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
(env) book@book-VirtualBox:~/dj/mysit$ 
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐