Windows7 Django Project Setup

Source: Internet
Author: User

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

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.