# \[Python\] Django Heroku Deployment and suggest for future course

**URL:** https://forum.codewithmosh.com/t/python-django-heroku-deployment-and-suggest-for-future-course/1305
**Category:** Python
**Created:** [December 17, 2020, 12:21am UTC](https://forum.codewithmosh.com/t/python-django-heroku-deployment-and-suggest-for-future-course/1305 "2020-12-17T00:21:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tobyatlarge](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@tobyatlarge](https://forum.codewithmosh.com/u/tobyatlarge)
#### Post date: [December 17, 2020, 12:21am UTC](https://forum.codewithmosh.com/t/python-django-heroku-deployment-and-suggest-for-future-course/1305/1 "2020-12-17T00:21:50Z")

</div>

To make django heroku deploymen successful:

1. you need a `requirements.txt` to make heroku realize this is a python app. To do this, in terminal run `pip freeze > requirements.txt`
2. you may need to modify the Procfile to `web: gunicorn vidly.wsgi --log-file - `

Suggest for future courses:  
More django web development plz!

---

<div class="post-metadata">

### Author: ![Spondicious](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/spondicious/32/2676_2.png) [@Spondicious](https://forum.codewithmosh.com/u/Spondicious)
#### Post date: [March 13, 2022, 7:19pm UTC](https://forum.codewithmosh.com/t/python-django-heroku-deployment-and-suggest-for-future-course/1305/2 "2022-03-13T19:19:12Z")

</div>

I did both of the suggestions mentioned and it looked like the app was deployed and then I get an application error.

Only a beginner here and I can’t see any way to get past this.  
It was working from the local server no problem. No errors. There were not that many steps to get on to Heroku and yet it didn’t work.

What about if I want to put it onto my own hosting instead? Is that possible?
