django 建立admin用戶名跟密碼

一.django中建立用戶名和密碼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 警告ide

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 上無效spa

相關文章
相關標籤/搜索