Use Django's authentication system to implement user information verification
When using the migrate command to migrate data earlier, the auth_user table was generated, which stores user information and can be used to log in to the Admin management background that comes with Django.
Create Admin background management account
python manage.py createuperuser
E:\data\python\djaongo_prj\guest>python manage.py createuperuser
Unknown command: 'createuperuser'. Did you mean createsuperuser?
Type 'manage.py help' for usage.
E:\data\python\djaongo_prj\guest>python manage.py createsuperuser
Username (leave blank to use 'administrator'): admin
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
Username: admin Password: admin123456