A barebones example of using Deauthorized authentication solution within a Django app.
Make sure you have Python installed properly. Also, install the Heroku CLI and Postgres.
$ git clone git@github.com:Deauthorized/python_openidconnect_starter_app.git
$ cd python_openidconnect_starter_app
# Setup Environment
$ pipenv install
# OR
$ conda env create && source activate deauthorized-python-sample
$ createdb python_getting_started
$ python manage.py migrate
$ python manage.py collectstatic
# Run dev server
$ heroku local
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open
or
For more information about using Python on Heroku, see these Dev Center articles: