File Structure

Project folder

Let us create a simple Django application that takes input from users and stores it in PostgreSQL which then will be deployed using Heroku.

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