ImportError: No module named 'decouple' while deploying on Heroku

前端 未结 4 433
悲&欢浪女
悲&欢浪女 2021-01-03 07:08

I was trying to deploy my django project on heroku from heroku cli. So I created an app and then I ran git push heroku master from the project directory. Then I

4条回答
  •  囚心锁ツ
    2021-01-03 07:48

    I had the same problem, I'm new to django. The steps above didn't work after updating requirements.txt until I switched env.

    source env/Scripts/activate
    pip install -r requirements.txt
    py manage.py runserver
    

提交回复
热议问题