Skip to content

Roburlion/working-heroku-python-template

Repository files navigation

Python: Getting Started

This site is up at https://working-heroku-python-template.herokuapp.com/

All changes to this repo should be done on a dev branch!

This was created by following the Getting Started with Python on Heroku article.

Running Locally

Make sure you have Python 3.10 installed locally. To push to Heroku, you'll need to install the Heroku CLI, as well as Postgres.

$ git clone https://github.com/heroku/python-getting-started.git
$ cd python-getting-started

$ python3 -m venv getting-started
$ pip install -r requirements.txt

$ createdb python_getting_started

$ python manage.py migrate
$ python manage.py collectstatic

$ heroku local

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku main

$ heroku run python manage.py migrate
$ heroku open

or

Deploy

Documentation

For more information about using Python on Heroku, see these Dev Center articles:

About

This is a working Heroku Python template. Simply duplicate and push to Heroku.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 26