First Django,django Project

Source: Internet
Author: User

The implementation of Django under WIN10

This may be due to the setting of environment variables, as long as the use of Django's built-in methods when executing, and so on will give its full path

My Python is installed on the D drive, for: D:\python2.7

Django is installed under the Python installation directory

I created the Projects folder under the E drive and built a Django project under the folder to learn

The execution process is as follows:

Start-->> run: input cmd, bring up DOS


Under DOS make the current directory the folder where the project was created E:\projects:


In the current directory, start building the first Django project--test_site

At this time, under the E:\projects folder more than a Test_site folder, the folder has a py file and a folder of the same name, there are 4 files in this folder, as follows:




You can start the project below and use the command Python E:\projects\test_site\manage.py runserver in the current project directory to start the current project:


Project default listener on port 8000, please be careful not to let this port be occupied by other programs, to prevent conflicts. Then open your IE browser, visit: http://localhost:8000/, if the "Welcome to Django" page appears, then the project started successfully, as shown in the figure above.




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.