Pycharm Create a Django project in the Community Edition (Windows 8.1)

Source: Internet
Author: User
Tags pycharm community edition

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.