Python builds the project process from the beginning

Source: Internet
Author: User
Tags install django virtual environment

One, the requirement is to build a project on the desktop with a name for beauty

1) CD Desktop

2) mkdir Meizhuang_server

3) Install the virtual environment pipenv--python3.6

4) Enter virtual environment pipenv Shell will generate two files Pipfile and Pipfile.lock in Meizhuang_server at this time

5) Install Django:django-admin Startproject Meizhuang This folder is now generated under Meizhuang_server Meizhuang

6) CD Meizhuang into the manage.py folder

7) Execute the command./manage.py startapp home1 generate home1 App

8) Open Pycharm to start configuring the virtual environment, under open Meizhuang_server Meizhuang

9) Commod +, shortcut key open pefrence, set project, double click to select Project Interpreter, go to select a virtual environment, if not, click Local Add, Go to Machion--virtualenvs to find the corresponding project name for the virtual Environment folder, then click on the bin below to select Python

10) Click Setting.py, go in to modify the language and time zone, respectively set to

Language_code = ' Zh_hans '
Time_zone = ' Asia/shanghai '

To this step is basically finished


Python builds the project process from the beginning

Related Article

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.