Python Django配置

Python Django配置

环境

win10
Python 3.7.4
conda 4.7.12

pip安装Django

pip install django

测试

  • 命令行
django-admin startproject Test
cd Test
python manage.py runserver 0.0.0.0:8000
  • 结果
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 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 31, 2020 - 20:21:59
Django version 3.1, using settings 'HelloWorld.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CTRL-BREAK.
[31/Aug/2020 20:22:27] "GET / HTTP/1.1" 200 16351
[31/Aug/2020 20:22:27] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[31/Aug/2020 20:22:27] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
[31/Aug/2020 20:22:27] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
[31/Aug/2020 20:22:27] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
Not Found: /favicon.ico
[31/Aug/2020 20:22:27] "GET /favicon.ico HTTP/1.1" 404 1976

安装成功

浏览器中输入http://127.0.0.1:8000/,显示如下则表示安装成功

最后

  • 由于博主水平有限,不免有疏漏之处,欢迎读者随时批评指正,以免造成不必要的误解!

猜你喜欢

转载自blog.csdn.net/qq_44486439/article/details/108328944
今日推荐