Django学习路

1.脚本不能随便运行,没准 linux 运行完就上不去了
2.pip 在 linux 上 写 pip3
    同理 python 写为 python3
3.在 pycharm 上安装库之后,在命令提示符中依旧需要安装
    才能在终端进行使用
4.在虚拟环境下安装 uwsgi
5.升级 django 到2.0版本解决  pip3 install django==2.0.4
    ImportError: cannot import name 'path'
6.python3 manage.py migrate 解决
    You have 14 unapplied migration(s). 
Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. 7.python3 manage.py runserver 打开网址就可以运行成功了

 


2020-04-25

原文地址:https://www.cnblogs.com/hany-postq473111315/p/12774607.html