打开Pycharm,创建项目
2、python manage.py startapp django_web
3、生成文件
4、setting中配置项目名
5、在templates创建html
6、在views中配置
7、配置urls
8、运行项目,完成
python manage.py runserver
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, conte
nttypes, sessions.
Run 'python manage.py migrate' to apply them.
September 03, 2019 - 16:58:13
Django version 2.2.5, using settings 'djangotest.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
9、settings配置样式