Sharing of common operation commands in Django
This article mainly explains the "Django common operation command sharing", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Django common operation command sharing" bar!
1. Check the Django version:
Click (here) to collapse or open
[oracle@monit monitor] $python-m django-- version
1.11.4
Click (here) to collapse or open
[oracle@monit mysite] $python manage.py version
1.11.4
2. Automatically create database tables:
The migrate command finds all available models and creates tables that do not already exist in the database.
Click (here) to collapse or open
[oracle@monit mysite] $python manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, monitor, sessions
Running migrations:
No migrations to apply.
Thank you for your reading, the above is the content of "Django common operation command sharing", after the study of this article, I believe you have a deeper understanding of the problem of Django common operation command sharing, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!