1.执行 manage.py createsuperuser
1.1 #进入manage.py 目录 1.2 #进入终端 python manage.py createsuperuser 或者 python3 manage.py createsuperuser
2.根据提示创建用户和密码
用户名 (leave blank to use 'admin'): ntopic 电子邮件地址: ntopic@163.com Password: Password (again): 密码长度太短。密码必须包含至少 8 个字符。 这个密码太常见了。 这个密码全部是数字的。 Bypass password validation and create user anyway? [y/N]: y Superuser created successfully.



