django部署Apache后报ModuleNotFoundError

解决:https://www.cnpython.com/qa/92069

再wsgi.py中添加:

sys.path.append('/home/django_projects/MyProject')
sys.path.append('/home/django_projects/MyProject/myproject')
posted @ 2022-04-29 03:07  小默同学  阅读(64)  评论(0编辑  收藏  举报