Getting Started with Django (b)

Create a new project

In a folder, create a project;

Open cmd, cd path

Such as: cd D: \ PythonCode \ 00DjangoStudy \ Study01

Django create a project and then enter the command: django-admin startproject Study

The first two (django-admin startproject fixed and command), the latter project name Study

 

Once created, you can see the directory structure as follows Study

 

manage.py action: a command-line tool that allows us to interact with Django project in various ways

--settings.py Role: Project Profiles

--urls.py role: url declarations of a project

--wsgi.py Role: Project WSGI-compatible web server

--__init__.py role: an empty file that tells this directory should be a python python package

 

Guess you like

Origin www.cnblogs.com/james-danni/p/11204073.html