PaaS Platform settings

Heroku

PostgresHeroku

class common_configs.paas.heroku.PostgresHeroku
DATABASES

Return a fully configured Django DATABASES setting.

Scans environment variables for available postgresql add-on.

heroku addons:add heroku-postgresql
heroku addons:add pgbackups:auto-month

MemcacheHeroku

class common_configs.paas.heroku.MemcacheHeroku
CACHES

Return a fully configured Django CACHES setting.

Scans environment variables for available memcache add-on. Additionally includes Django’s LocMemCache backend under "locmem" cache name.

heroku addons:add memcachier

CeleryHerokuBigWig

Uses AMQP broker settings for RabbitMQ Bigwig add-on.

class common_configs.paas.heroku.CeleryHerokuBigWig

Bases: common_configs.apps.celery.CeleryBase

BROKER_URL = SecretValue

Env variable: RABBITMQ_BIGWIG_URL

Retrieve broker url settings from BigWig RabbitMQ environment variable

heroku addons:add rabbitmq-bigwig

CeleryHerokuCloudAMQP

Uses AMQP broker settings for CloudAMQP add-on.

class common_configs.paas.heroku.CeleryHerokuCloudAMQP

Bases: common_configs.apps.celery.CeleryBase

BROKER_URL = SecretValue

Env variable: CLOUDAMQP_URL

Retrieve broker url settings from CloudAMQP environment variable

heroku addons:add cloudamqp

Heroku

class common_configs.paas.heroku.Heroku

Bases: common_configs.paas.heroku.MemcacheHeroku, common_configs.paas.heroku.PostgresHeroku, common_configs.storage.storage.AWSCompressStorage

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

SSL proxy header as defined in Django settings docs.

LOG_REQUEST_ID_HEADER = 'HTTP_HEROKU_REQUEST_ID'

Request Id header

Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.