Django entry record 2 django case django build django project
Jul 29, 2016 am 08:54 AM1. Create an app, python manage.py startapp appname
2. Design the model, edit the model in the appname/ directory
3. Detect the modification of the model, python manage.py makemigrations appname
4. Automatically execute the database Migrate and synchronously manage the database structure, python manage.py sqlmigrate 0001
5. Create a data table of the newly defined model in the database python manage.py migrate
Steps to change the model:
- Edit the models.py file, Change the model.
- Run
python manage.py makemigrations
to generate migration files for model changes. - Run
python manage.py migrate
to apply database migration.
The above introduces Django entry record 2, including Django content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Django vs. Flask: A comparative analysis of Python web frameworks

Django Framework Pros and Cons: Everything You Need to Know

How to upgrade Django version: steps and considerations

What is the difference between django versions?
