Django Heroku

[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56
Alternatives To Django Heroku
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Cookiecutter Django10,315
1a day ago5January 15, 2018108bsd-3-clausePython
Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
Django Vue Template1,453
3 months ago41mitPython
Django Rest + Vue JS Template
Django React Boilerplate1,440
10 months ago42mitPython
Django 3, React, Bootstrap 4 with Python 3 and webpack project boilerplate
Pontoon1,259
18 hours ago334bsd-3-clausePython
Mozilla's Localization Platform
Guides948
4 years ago13mit
Guides for learning + doing better web and app development. Created by Coding for Entrepreneurs.
Heroku Django Template851
3 years ago14Python
A Django 2.0 base template featuring all recommended best practices for deployment on Heroku and local development.
Bakerydemo674
21 days ago21bsd-3-clausePython
Next generation Wagtail demo, born in Reykjavik
Django Project Template622
7 months ago8Python
Project template layout for Django 3.0+
Generic Django Project576
6 years ago4Python
Generic Django Project I Use For All New Applications
Django Heroku4662,23668 months ago7December 15, 202134bsd-3-clausePython
[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56
Alternatives To Django Heroku
Select To Compare


Alternative Project Comparisons
Readme

Django-Heroku (Python Library)

https://travis-ci.org/heroku/django-heroku.svg?branch=master

This is a Django library for Heroku applications that ensures a seamless deployment and development experience.

This library provides:

  • Settings configuration (Static files / WhiteNoise).
  • Logging configuration.
  • Test runner (important for Heroku CI).

Django 2.0 is targeted, but older versions of Django should be compatible. Only Python 3 is supported.

Usage of Django-Heroku

In settings.py, at the very bottom:

# Configure Django App for Heroku.
import django_heroku
django_heroku.settings(locals())

This will automatically configure DATABASE_URL, ALLOWED_HOSTS, WhiteNoise (for static assets), Logging, and Heroku CI for your application.

Bonus points! If you set the SECRET_KEY environment variable, it will automatically be used in your Django settings, too!

Disabling Functionality

settings() also accepts keyword arguments that can be passed False as a value, which will disable automatic configuration for their specific areas of responsibility:

  • databases
  • test_runner
  • staticfiles
  • allowed_hosts
  • logging
  • secret_key

You can also just use this library to provide a test runner for your Django application, for use on Heroku CI:

import django_heroku
TEST_RUNNER = 'django_heroku.HerokuDiscoverRunner'
Popular Django Projects
Popular Heroku Projects
Popular Frameworks Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Django
Heroku
Test Runner