Push to GitHub

Step 22: Create a GIT repository and upload the project files.

Step 23: In Heroku, go to your app and navigate to the deploy tab. Select the project repo after connecting to your GitHub account in Heroku.

Step 24: Click “deploy branch”. 

 

Step 25: Ensure the application is up and running.

 

Output:

 

Deploying Django App on Heroku with Postgres as Backend

Django is a high-level Python web framework used to create web applications without any hassle, whereas, PostgreSQL is a powerful, open-source object-relational database. Let us first create a Django application with PostgreSQL in the backend and deploy it in Heroku which is a container-based cloud Platform to deploy, manage, and scale the applications. 

Similar Reads

Packages Required

Python Django Postgres Virtual Environment Git...

File Structure

Project folder...

Set-up virtual environment :

In your terminal, use the following commands to set up a virtual environment for this tutorial. This will allow you to have a development environment independent of the host operating system....

Create Django application

Step 1. Django project set-up...

Heroku Postgres and deployment

...

Push to GitHub

...

Connect Postgres to a remote server(pgAdmin4)

...

Contact Us