1

How to Deploy Django application on Heroku

 2 years ago
source link: https://www.geeksforgeeks.org/videos/how-to-deploy-django-application-on-heroku/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to Deploy Django application on Heroku

How to Deploy Django application on Heroku
Hello, welcome to geek. So T. I am wonderful
Video Player is loading.
Loaded: 0.00%
00:00
Remaining Time -24:33
  • 250 Views
  • 06/05/2022

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK