Django admin賬號和密碼


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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM