PythonWeb-Django framework learning -Demo4-admin management background

Django management background provides us with a project-based model created. The admin background can be customized, free, daily records database CRUD enough.

1. Create an administrative user

2, start the service input 127.0.0.1:8000/admin

3, admin interface

4, in the background, managing the site to register their applications

5, refresh the page again

Click User Information table:

Description: This record is also ugly, barely readable, so it can be rewritten models.py inside the User class. Examples of a method of adding __str__

Refresh again:

Temporarily write such a point, admin management background, there are many places you can customize.

Guess you like

Origin www.cnblogs.com/bigbosscyb/p/12510653.html