Python3 创建Django3 项目过程
1安装python3 ,pycharm
略
更改下载第三方库的地址
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
其他地址
阿里:http://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
中科大:http://pypi.mirrors.ustc.edu.cn/simple/
2创建django项目

安装django


pip freeze

创建Django项目

创建一个应用

启动django


其他相关:
同步或者更改生成 数据库:
python manage.py makemigrations
python manage.py migrate
清空数据库: python manage.py flush
创建管理员: python manage.py createsuperuser
修改用户密码: python manage.py changepassword username
浙公网安备 33010602011771号