Django is a popular framework used by Python to develop Web applications that integrates background rights management, models, forms, databases, and template functionality.
The Django installation and configuration process is as follows.
1. Download Django. Download the Django package locally from the Django website, unzip it, copy it to the appropriate directory according to your needs, and I'm locally placed in the D:\Program Files (x86) directory.
2. Install and configure Django.
(1) Open cmd command as Administrator, go to Django Unzip directory, install Django via python, command as follows: Python setup.py install. With the above command, Django will be installed into the Site-packages directory under the Python lib.
3. Create and start the project.
The Create Project command is as follows:Django-admin startproject testdj
switch to create project directory to start the service: python manage. PY runserver 0.0. 0.0:8000, open the browser input http://127.0.0.1:8000/can be accessed normally.
Python-based Django installation and configuration