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!