$ 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$