Django提供admin后台,便於統一管理用戶、權限和權限組,超級用戶初始化方法
初始化命令行:
python manage.py createsuperuser
根據提示設置用戶名、郵箱和密碼:
D:\pyCharm\BBS>python manage.py createsuperuser
Username: admin
Email address: 294168604@qq.com
Password:
Password (again):
The password is too similar to the username.
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.