Django is an open-source web framework for Python, and in the Pycharm development environment, Pycharm Pro has a Django option when creating a new project, helping to create a Django framework project. Pycharm Community Edition needs to be created by itself
First step: Install the Django framework
You can install with pycharm, open file \ setings \ Project \ Project Interpreter view the packages that the project has installed, click the Green plus sign to add the target frame,
Note The Django installation path is logged, and my installation path is: C:\Users\ user name \appdata\roaming\python\python36\site-packages\
The second step: in order to let Windows find the Django-admin path, you need to set the environment variables,
Path, is to tell the system, when the system is asked to run a program without telling it the full path of the program, in addition to the current directory under the search for this program, but also to what directories to look for,
Open My Computer \ Properties \ Advanced system settings \ Environment variables \ Locate the path variable and add the Django installation path that you just recorded to the path variable. One of the path variables already has a Python directory, when path needs more than one value, two paths separated by a semicolon ";"
Step three: Open the Windows command line, create a project with django-admin.py, and note the path to creating the project C:\USERS\FYC
Open the directory location, find the created project, see some files inside
Fourth Step: Open the project created in the previous step with Pycharm, because the Pycharm default project directory is pycharmprojects, so copy the project you just created to the default directory (also can not copy, just for the convenience of management)
After the project has been copied open pycharm, file, new project, select File location, the file directory is selected under Pycharmproject, just created under the directory
When you open a project, a prompt appears
We want to create a project from an existing resource, so choose Yes, finish creating
Pycharm Create a Django project in the Community Edition (Windows 8.1)