django 创建admin用户名跟密码


一.django中创建用户名和密码

  

(venv) D:\project\py37project\Djangopro\Procrm>Python37 manage.py createsuperuser

Username (leave blank to use 'administrator'): admin
Email address: 2180633571@qq.com
Password:
Password (again):
This password is too common.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
View Code

 

二.models 警告

WARNINGS:
crm.Customer.tags: (fields.W340) null has no effect on ManyToManyField.
crm.UserProfile.roles: (fields.W340) null has no effect on ManyToManyField.
View Code

你在 ManyToManyField 上有个 null 的参数。migration 提醒你 null 在 ManyToManyField 上无效

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM