我尝试运行heroku run Python manage.py migrate
抛出错误ModulenotfoundError no module named django
还有
ImportError: Could not import django.are you sure it's installed
and available on you Python path environment variable?
Did you forget to activate a virtual environment?
我尝试了所有这些,我检查我的django它工作正常,
如果我尝试Python manage.py run server
服务器运行没有任何问题。
在项目根目录下创建requirements .txt