Home  >  Article  >  Backend Development  >  Detailed graphic and text explanation on the use of Django in Python

Detailed graphic and text explanation on the use of Django in Python

黄舟
黄舟Original
2017-08-13 09:55:291314browse

1.Django download and installation

Django download and installation under windows

Put the decompressed django-1.11.4 and python3 installation in the same root directory:

Enter Django-1.11.4 and use Django’s setup.py to execute the installation command:

cd Django-1.11.4

python setup. py install

Verify whether Django is installed successfully:

2. Use django-admin.py to create a project:

Start the server:

Visit 127.0.0.1 in the browser: 8000

Add view view.py and set the access route:

Restart the server and access 127.0.0.1:8000/hello

The above is the detailed content of Detailed graphic and text explanation on the use of Django in Python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn