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