top of page

Deploying Python and Django Apps on Heroku

Updated: Jun 23, 2019

Problem Statement:

I have a simple Django app hosted in Heroku which simply scrapes data from a website. What I need is that I want a Heroku command (e.g. heroku run python manage.py [custom_command] ) be mapped to a certain URL (e.g. mysite.com/run/[custom_command] ) such that when that certain URL is visited, a dyno is created that will run the command  "heroku run python manage.py [custom_command]".

I think this can be easily done by editing the urls.py and views.py and utilizing the Heroku platform API, but I don't know how.



How to Deploy Django Applications on Heroku
Deploying Python and Django Apps on Heroku

Challenge:

why does deploying your app on the web have to be SO difficult? Years into my experience as a software developer and to this day I find hosting online to be a PAIN.

If you ever tried it, did you enjoy running into issues with static files, WhiteNoise, not installing the middleware in the right location, or a whole host of said fun stuff? Yeah, me neither.


Heroku:

Heroku is a cloud application platform that provides hosting services for multiple programming languages, including Python. It is basically a Platform-as-a-Service (PaaS) cloud infrastructure. You can read more about Heroku here. Of course, you need an account, so sign up here.


Contact us for step-by-step introduction to deploying Python apps on Heroku from codersarts developer.


If you like Codersarts blog and looking for Assignment help,Project help, Programming tutors help and suggestion you can send mail at contact@codersarts.com.


Please write your suggestion in comment section below if you find anything incorrect in this blog post.



#BackEndDevelopment #Django #HerokuandDjangohelp

Bình luận


bottom of page