In this video, we will be covering how to deploy DJango Application on Heroku step by step.
Heroku is an easy, simple, and one-stop solution to host any website or server. It is a cloud-based application for deployment and management service which supports several programming languages such as Ruby, Java, Node.js, Scala, Clojure, Python, PHP, and Go.
It requires a Procfile, and this file is used to declare your entry points and the application’s process. we will first create a virtual environment. which help us to keep dependencies required by different projects separate by creating isolated Python virtual environments for them. After that, we will install gunicorn.
Gunicorn is a Python HTTP server for WSGI applications that allow us to run any python application concurrently by running multiple processes within a single dyno. for Heroku, we also need a requirements.txt" file so that Heroku knows all the dependencies it needs to run our application. Now we are ready with our all dependency. we just need to install Heroku CLI and Log in to the Heroku account create an app and fire some commands to migrate on the Heroku application to execute the following query. After the successful execution of the program, you can now see your application in Heroku.
Link to GitHub Repository used for example: https://github.com/AnubhavMadhav/gfg-deployApp
Related Articles : https://www.geeksforgeeks.org/how-to-deploy-django-application-on-heroku/