🚀 启动
- 安装Python3.7.7
- 下载PyCharm
- 配置pip源
路径:
C:\Users\Administrator\pip\pip.ini
内容:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
🌰 配置环境
- 下载Python3
- 配置环境变量
PYTHON_HOME=C:\Python37
PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;
- 安装django
python -m pip install django
python -m django --version
- 创建项目
django-admin.py startproject foot_tensorflow
- PyCharm打开foot_tensorflow
PyCharm配置一下venv
venv没有继承Python全局环境下的包的话,再安装一下django
pip install django
🌰 使用django生成model
- 在settings.py文件中配置数据连接信息
DATABASES = {
'default': {

最低0.47元/天 解锁文章

1531

被折叠的 条评论
为什么被折叠?



