Easiest way to host your django application | Heroku | Using just terminal | 2022

Опубликовано: 20 Март 2026
на канале: Jishnu Saurav
443
11

Procfile :
web: gunicorn survey-earth.wsgi --log-file - --log-level debug
python manage.py collectstatic --noinput
manage.py migrate

Requirements.txt :
django
django_heroku
gunicorn

Lines to include in settings.py :
First line - import django_heroku
Last line - django_heroku.settings(locals())

Heroku commands :
$ heroku login
$ heroku git:clone -a survey-earth
$ cd disaster-breaker
$ git add .
$ git commit -am "make it better"
$ git push heroku master