所需工具
- Pycharm(专业版)
- Mysql
- Navicat
Django项目创建
1.打开我们之前安装好的Pycharm专业版,选中Django,新建项目
新建完成后,通过查看左侧的文件目录,我们不难看出使用Pycharm创建项目和使用CMD命令行创建大体上是一样的
2.最后我们运行该项目
当出现如下提示时,即运行成功
System check identified 1 issue (0 silenced).
You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
August 03, 2017 - 02:21:58
Django version 1.11.3, using settings 'Django.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
打开浏览器,输入127.0.0.1:8000