Step 1 of Django development under win7 and step 1 of win7django

Source: Internet
Author: User

Step 1 of Django development under win7 and step 1 of win7django

I am using python3.3 + Django1.7.3. Now I am going to learn some basic Django.

Open the directory where you want to create the project file first in cmd.

Then.

Next you will see a mysite folder with a mysite folder and manage. py


In the mysite folder


Enter manage. py migrate in the mysite directory. The following figure is displayed:


Next, enter manage. py runserver. If there is a port conflict, you can write this sample maange. py runserver 8080, and then:


Enter 127.0.0.1: 8000 in the browser.


Next

Edit the text, open polls \ models. py, and write down the code.


Change mysite \ setting. py to this

After


Enter manage. py migrate again


Use shell



Open 127.0.0.1: 8000/admin in the browser again.


I started learning only during the winter vacation. Because the English is not very good, I want to study while translating. Please point out the shortcomings.

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.