[2.4] acquaintance Django Admin module

What 1.Django Admin module

  Django backend management tools

  Read-defined metadata model, providing powerful management using a page

 

2. Why do you need Django Admin module

  Django Shell new article is too complicated

  Management page is an important part of the infrastructure

  Authenticating a user, display management model, similar to the check-in functions

Use 3.Django Admin module

  Create an administrator user

  Manage the login page

  1.python manage.py createsuperuser-- create user

  2.http: //127.0.0.1: 8000 / admin access admin, and login

  3. Registration modle

  

  4. Define the magic function returns the title of the article

  

  Return __str __ () method is the description of this object

 

 

 

  

Guess you like

Origin www.cnblogs.com/zydeboke/p/11446218.html