Reads common AWS settings like AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from environment.
Env variable: AWS_ACCESS_KEY_ID
AWS access key id retrieved from AWS_ACCESS_KEY_ID environment setting
Env variable: AWS_SECRET_ACCESS_KEY
AWS secret key retrieved from AWS_SECRET_ACCESS_KEY environment setting
Use heroku config command to define the values:
heroku config:add AWS_ACCESS_KEY_ID=<key id> heroku config:add AWS_SECRET_ACCESS_KEY=<secret key>
Cache config
Defines list of caches for development purposes:
- default: DummyCache
- locmem: LocMemCache
- dummy: DummyCache
Retrieves email backend config from environment variables
Use Mailgun as email backend
Env variable: MAILGUN_API_KEY
Mailgun api key for using the REST API
Env variable: MAILGUN_SMTP_SERVER
Mailgun SMTP server host
Env variable: MAILGUN_SMTP_LOGIN
Mailgun SMTP server login
Env variable: MAILGUN_SMTP_PASSWORD
Mailgun SMTP server password
Env variable: MAILGUN_SMTP_PORT
Mailgun SMTP server port
Env variable: MAILGUN_SMTP_SERVER
Email host for sending mail
Env variable: MAILGUN_SMTP_LOGIN
Email server username
Env variable: MAILGUN_SMTP_PASSWORD
Email server password
Env variable: MAILGUN_SMTP_PORT
Email server SMTP port
Email server TLS secure connection
Env variable: DJANGO_EMAIL_BACKEND
Email backend
Use Sendgrid as email backend
Env variable: SENDGRID_SMTP_SERVER
Sendgrid SMTP server host
Env variable: SENDGRID_USERNAME
Sendgrid SMTP server login
Env variable: SENDGRID_PASSWORD
Sendgrid SMTP server password
Env variable: SENDGRID_SMTP_PORT
Sendgrid SMTP server port
Env variable: SENDGRID_SMTP_SERVER
Email host for sending mail
Env variable: SENDGRID_USERNAME
Email server username
Env variable: SENDGRID_PASSWORD
Email server password
Env variable: SENDGRID_SMTP_PORT
Email server SMTP port
Email server TLS secure connection
Env variable: DJANGO_EMAIL_BACKEND
Email backend
Configure push notification credentials for Apple Push Notification Service (APNS) Production/Enterprise and Google Cloud Messaging for Android (GCM)
Env variable: APNS_PRODUCTION_SERVER
Production server
Env variable: APNS_PRODUCTION_FEEDBACK_SERVER
Production feedback server
Env variable: APNS_PRODUCTION_CERT_FILE
Production certificate file (when cert file is stored in file system)
Env variable: APNS_PRODUCTION_CERT_STRING
Production certificate string (when cert is stored as env variable)
Env variable: APNS_PRODUCTION_CERT_PASS
Production certificate password
Env variable: APNS_ENTERPRISE_SERVER
Enterprise server
Env variable: APNS_ENTERPRISE_FEEDBACK_SERVER
Enterprise feedback server
Env variable: APNS_ENTERPRISE_CERT_FILE
Enterprise certificate file (when cert file is stored in file system)
Env variable: APNS_ENTERPRISE_CERT_STRING
Enterprise certificate string (when cert is stored as env variable)
Env variable: APNS_ENTERPRISE_CERT_PASS
Enterprise certificate password
Dictionary of production and enterprise settings:
{
"production": {
"server": ..,
"feedback_server": ..,
"cert_file": ..,
"cert_string": ..,
"cert_pass": ..,
},
"enterprise": ..
}
Return type: | dict |
---|
Pusher service config
Env variable: PUSHER_SOCKET_URL
Pusher Socket URL
Env variable: PUSHER_URL
Pusher endpoint URL
Pusher app id from PUSHER_URL
Pusher key from PUSHER_URL
Pusher secret from PUSHER_URL
Pusher host from PUSHER_URL
Sentry/Raven configs
Env variable: SENTRY_DSN
Reads Raven connection settings from SENTRY_DSN environment variable
Appends raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware to list of MIDDLEWARE_CLASSES.
Appends raven.contrib.django.raven_compat to list of INSTALLED_APPS.
Twilio account config
Env variable: TWILIO_ACCOUNT_SID
Account SID
Env variable: TWILIO_AUTH_TOKEN
Auth token
Env variable: TWILIO_PHONE_NUMBER
Default phone number