[1.1] initial Django project

The basic commands 1.Django

  Commonly used commands:

    startproject-- create a project diango

    startapp-- create a django application

    Check-- check the integrity of the project

    runserver-- local simple run django project

    shell-- into the python shell environment django projects

    Example django test performed test--

  Common commands (database-related):

    makemigrations-- create a model change migration file

    On migrate-- execute a command to create the migration file

    dumpdata-- to export data to a database file

    loaddata-- file to import data into the database

 

 

2. Create a project

  django-admin startporject django_introduction

 

 

3. Project Contents Introduction

  settings.py-- project configuration file

  urls.py-- project routing configuration file

  Django wsgi content as required for the application - wsgi.py

  manage.py-- project management documents

Guess you like

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