Get the App
SLTechnology News&Howtos  ›  Servers  › 

Sharing of common operation commands in Django

Shulou Source: shulou.com Published: 2022-06-01 10:46:58 10月01日 Update

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!

Tags: Commands common use learning content data database that is ideas situations articles more versions knowledge knowledge points articles follow questions practice push research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS NVidia OPPO Reno Shulou Information