PyCharm community edition builds Django2.0 development environment

PyCharm community edition builds Django2.0 development environment

Tool preparation:
(1) Python 3.X or above
https://www.python.org/downloads/windows/
(2)PyCharm
https://www.jetbrains.com/pycharm/

1. Create an empty project and install the Django2 framework

After the project is created, enter pip install Django in Terminal


See Successfully installed Django-2.0.4 pytz-2018.4 that the installation is complete!

2. Create a website

enter:
     django-admin startproject myweb



python manage.py startapp myweb

Enter on the cmd command line: python manage.py runserver

At this point, open the browser and enter http://127.0.0.1:8000 to see it.

3. Easy to debug

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324522844&siteId=291194637