Django project overview (1)

     The environment was installed last time, and I have recently practiced the Django framework to try to build a small library management project. Django-1.8.2.tar.gz is placed on github with this project, and the address is taken at the end of the article.

      In Django, the project's organizational structure is that a project contains multiple applications, one application corresponds to one business module

     This project is also based on the MVT model:

    One, M model class

     1. Define the model class in Model.py

     2. Generate Migration

     3. Perform the migration

    Second, register admin

    1. Create Super Administrator

    2. Register the model class

    3. Log in to the background to manage data

    Three, V view layer

     1. Define the view in view.py

     2. Configure the url

   Four, T template

   1. Configure setting.py

   2. Create directories and files

   3. Edit the template file

   4. Call in the view


github:https://github.com/xiangzi0829/djangoTest1.git

https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
https://github.com/xiangzi0829/djangoTest1.git
Published 15 original articles · praised 3 · 10,000+ views

Guess you like

Origin blog.csdn.net/edward_2017/article/details/79789436