Python 创建web项目- 从零开始(1)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34579060/article/details/88663030

1. 安装python

2. 安装django

3.创建项目主目录:


E:\SongBlog>django-admin startproject songblog

E:\SongBlog>cd songblog

E:\SongBlog\songblog>python manage runserver

 4. 浏览器输入  http://localhost:8000 验证

遇到问题:

      1. 使用  pip freeze > requirements.txt 遇到如下错误

E:\songblog>pip freeze > requirements.txt
Fatal error in launcher: Unable to create process using '"c:\users\administrator.xtz-01703232109\appdata\local\programs\python\p
ython37\python.exe"  "E:\Python\Python37\Scripts\pip.exe" freeze '

   2. django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.

猜你喜欢

转载自blog.csdn.net/qq_34579060/article/details/88663030
今日推荐