Reference Video Tutorial Http://study.163.com/course/http://www.bilibili.com/video/av8915600/
First create a new folder on the desktop test, and then in the terminal to cut into the directory
C:\USERS\AMAZING>CD Desktop\test
Connect to input command
C:\users\amazing\desktop\test>django-admin Startproject Face
If you look at a video tutorial of the Linux environment, you'll find that the commands are a little different. Linux for django-admin.py Startproject face. One more. py. I ran the command on the Windows terminal and found that only the django-admin.py files were opened, and the operation to create the directory was not performed.
How to open a Django project: switch directories to face see manage.py file
C:\users\amazing\desktop\test\face>python manage.py Runserver
The following results are obtained:
Performing system checks ...
System Check identified no issues (0 silenced).
You have unapplied migrations; Your app properly until they is app
Lied.
Run ' python manage.py migrate ' to apply them.
June 25, 2017-13:13:48
Django version 1.8, using Settings ' face.settings '
Starting development Server at Http://127.0.0.1:8000/
Quit the server with Ctrl-break.
You can see the above URL, that is, you can open the newly built project in the browser.
How to create a new app app:
CTRL + C ends the running of the previous program. Input command
C:\users\amazing\desktop\test\face>python manage.py Startapp Demoface
You can see one more Demoface folder in the face directory.
Windows7 Django Project Setup