Python learning 1-django creating projects and applications

Source: Internet
Author: User
Tags install django pip install django

New Folder hold Item D:\class_pyif\pyif08

Open cmd command

Enter Python

#安装 Django

Pip Install Django (after installation, enter python->scripts to display the django-admin.exe,django-admin.py file,

View Django command: django-admin where Startproject is the command to create a project)

Go to catalogue D:\class_pyif\pyif08

Create Project: Guest

Django-admin Startproject Guest creation completed using Pycharm Import Project

Generate many files, where manage.py is a command file

Enter Project

Cd:guest use Python manage.py to view manage commands which are commonly used in commands such as Startapp, Runserver, etc.

Create an App

Enter Python manage.py Startapp sign to see the guest project under Pycharm->sign

Start Project

Python manage.py runserver

End project into edit state

CTRL + C

Python learning 1-django creating projects and applications

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.