本文实例讲述了python+Django+pycharm+mysql 搭建首个web项目。共享给大家供大家参考,详细如下:
前面的文章记录了环境搭建的过程,本节记录首个web项目调试
首先检查安装的模块,输入dos命令 pip list, 会显示已安装的模块,看是否有Django,PyMySQL模块
C:\Users\Administrator\PycharmProjects>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to di
sable this warning.
Django (2.0.1)
pip (9.0.1)
PyMySQL (0.8.0)
pytz (2017.3)
setuptools (28.8.0)
1、然后开始创建项目: 运行PyCharm, 菜单选File->New project 弹出对话框
在对话框中左侧选Django ,项目名称改为mysite,点Create按钮创建
然后搜索运行,就行了看到web项目启动,并提示 Starting development server at http