Django项目版本错误运行报错no python application found, check your startup logs for errors

no python application found, check your startup logs for errors

一般是多版本兼容的问题,或者uwsgi和python环境不符合,注意pip的时候需不需要pip3


Django错误unsupported operand type(s) for +: ‘PosixPath‘ and ‘str‘

将settings中的'DIRS': [BASE_DIR+'templates',],改为:

'DIRS': [BASE_DIR,'templates',],

创建Django工程出现:Cannot find installed version of python-django or python3-django

大概率是由于pip的路径和当前python版本不对应,安装对应版本的django即可解决

posted @ 2021-07-03 20:33  予或  阅读(432)  评论(0编辑  收藏  举报