第一个Django项目
Django

1.1. 用命令行的方式:

django-admin startproject [项目名称]django-admin startproject first_projectapppython manage.py startapp [app名称]
pycharm
pycharmDjangopycharmapp

二、运行Django项目:

python manage.py runserver8000http://127.0.0.1:8000/python manage.py runserver 90009000ip0.0.0.0python manage.py runserver 0.0.0.0:8000pycharm

三、项目结构介绍:

manage.pypython manage.py [子命令]python manage.py helpsettings.pyurls.pyhttp://127.0.0.1/news/wsgi.pyWSGIweb

四、project和app的关系:

appdjangoappURLappdjangoappappdjangoappappdjangoapp