The implementation of Django under WIN10
This may be due to the setting of environment variables, as long as the use of Django's built-in methods when executing, and so on will give its full path
My Python is installed on the D drive, for: D:\python2.7
Django is installed under the Python installation directory
I created the Projects folder under the E drive and built a Django project under the folder to learn
The execution process is as follows:
Start-->> run: input cmd, bring up DOS
Under DOS make the current directory the folder where the project was created E:\projects:
In the current directory, start building the first Django project--test_site
At this time, under the E:\projects folder more than a Test_site folder, the folder has a py file and a folder of the same name, there are 4 files in this folder, as follows:
You can start the project below and use the command Python E:\projects\test_site\manage.py runserver in the current project directory to start the current project:
Project default listener on port 8000, please be careful not to let this port be occupied by other programs, to prevent conflicts. Then open your IE browser, visit: http://localhost:8000/, if the "Welcome to Django" page appears, then the project started successfully, as shown in the figure above.