---
title: "Discussion on \"How to deploy a Django App to Heroku (The Github Method)\" | Hashnode"
description: "Discussion on \"How to deploy a Django App to Heroku (The Github Method)\". The beauty of building an app or a website is appreciated when others are able to see and view it from their end.\nDeploying an application means putting it on a web server so it can be used through the internet. The goal of deploying is to make it av..."
url: "https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to deploy a Django App to Heroku (The Github Method)](https://ruthikegah.xyz/how-to-deploy-a-django-app-to-heroku-the-github-method?utm_source=hashnode&utm_medium=feed)

The beauty of building an app or a website is appreciated when others are able to see and view it from their end. Deploying an application means putting it on a web server so it can be used through the internet. The goal of deploying is to make it av...

Sep 24, 2020 · 4 min read · ruthikegah.xyz  
Updated Sep 25, 2020  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#django](https://hashnode.com/tag/django)
-   [#python](https://hashnode.com/tag/python)
-   [#hashnodecommunity](https://hashnode.com/tag/hashnodecommunity)

## Written by

[Ruth Ikegah](https://hashnode.com/@ikegah_ruth)

@ikegah\_ruth · Port Harcourt, Nigeria

  
[View profile](https://hashnode.com/@ikegah_ruth)

Learning to do things the backend way, Github Star, OSS lover and advocate

Developer advocacy, technical writing, Hype lady

## Responses 5

Markdown supported · ⌘↵ to post

[Josiah Augustine](https://hashnode.com/@Austino)

[Sep 26, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6f49c060599c596c47300d)

Great article! But I'll be glad if you add instructions on how to deal with sensitive information like SECRET\_KEY and Database username and password. Having them hard coded on the source code would be bad for security.

Thanks for sharing ❤️

[Ruth Ikegah](https://hashnode.com/@ikegah_ruth)

[Sep 26, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6f49c060599c596c47300d#reply-5f6f62f410098265143b86a9)

Hi [Josiah Augustine](https://hashnode.com/@Austino), thanks for reading. Here is a short and simple youtube tutorial for doing this. [youtube.com/watch](https://www.youtube.com/watch?v=IolxqkL7cD8&ab_channel=CoreySchafer)

[Somtochukwu Uchegbu](https://hashnode.com/@Somtochukwu)

[Sep 25, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6dd5f760599c596c472124)

Very helpful ma, but I have a question. What did you mean by

```
# Specify the process  type
```

[Sep 25, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6dd5f760599c596c472124#reply-5f6dd82aade1fb598d4392fa)

Hi [Somtochukwu Uchegbu](https://hashnode.com/@Somtochukwu) a process type is a declaration of a command that is executed. So in this case we need to declare the process type Heroku will work with and the app will run on a web server. To get more context on a Procfile. Check [here](https://devcenter.heroku.com/articles/procfile)

[Kayode Oladipo](https://hashnode.com/@oluwakayode)

[Sep 24, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6cc004c13a294f44d78a40)

Lovely read!

Tip: For CLI commands, you might wanna add "bash" to prevent it from being syntax highlighted.

Like this:

```
pip install some-package
```

[Ruth Ikegah](https://hashnode.com/@ikegah_ruth)

[Sep 24, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6cc004c13a294f44d78a40#reply-5f6cd2bac13a294f44d78b98)

Thanks, I will make the change now!

[Victoria Lo](https://hashnode.com/@victoria)

[Sep 24, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6cbb7bc13a294f44d789e5)

Super useful! Bookmarked :)

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Sep 24, 2020](https://hashnode.com/posts/how-to-deploy-a-django-app-to-heroku-the-github-method/5f6c7fd7aec9aa4d0da440c0/comment/5f6ca0027ad0ce4e1605c7da)

Fantastic article Ruth. Thanks for sharing.
