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

黄舟
Release: 2017-08-13 09:55:29
Original
1317 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template