About Django installation and use

Django installation:
the cmd: the install Django PIP
Djiango is a web frame.
Here Insert Picture DescriptionBrowser to operate HTML / CSS / JS, via http protocol database server connected via an interface, the interface by entering the URL into the program we write,
use Djiango needs and Pycharm be combined.
Use pycharm create a directory pyc02
Here Insert Picture Descriptionfind the path! [Insert Picture description here] ( https://img-blog.csdnimg.cn/20190521202454237.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzIzMjQyMw==, size_16, color_FFFFFF, t_70
1-> under cmd: django-admin startproject mysite // mysite as the project name created
Here Insert Picture Description
after creating pycharm will automatically recognize the new folder
Here Insert Picture Description
2-> under cmd: cd mysite
Here Insert Picture Description
details, because this is my pick down command useless. . 3
->: Py manage.py startApp HelloWorldApp
Here Insert Picture Description
PyCharm content:
Here Insert Picture Description
4-> modified web content display content views
Here Insert Picture Description
5-> url modify the content, the path set url.
Here Insert Picture Descriptionwhere index after the url with the table of Contents
6-> Run hellowapp: Python manage.py the runserver
Here Insert Picture Descriptionvisit the site http://127.0.0.1:8000/indedx/
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43232423/article/details/90414860