创建管理员账号:
(django-env) D:\Django Projects\mysite>python manage.py createsuperuser
Username: admin
Email address:
Password: 123456
Password (again): 123456
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.
启动服务器:
(django-env) D:\Django Projects\mysite>python manage.py runserver
进入并登陆管理员页面