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.