所需工具
- Pycharm(專業(yè)版)
- Mysql
- Navicat
Django項(xiàng)目創(chuàng)建
1.打開我們之前安裝好的Pycharm專業(yè)版弊决,選中Django状勤,新建項(xiàng)目
新建完成后,通過查看左側(cè)的文件目錄,我們不難看出使用Pycharm創(chuàng)建項(xiàng)目和使用CMD命令行創(chuàng)建大體上是一樣的
2.最后我們運(yùn)行該項(xiàng)目
當(dāng)出現(xiàn)如下提示時(shí)啃洋,即運(yùn)行成功
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