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