cobalt package#
Submodules#
cobalt.context_processors module#
values set in here are passed to every template
cobalt.errors module#
cobalt.middleware module#
This middleware checks for the presence of an environment variable that puts the site into maintenance mode. In maintenance mode normal users are shown a maintenance screen, but admin users can still login and use the system as normal.
This must be added to the middleware variable in settings and must come after “django.contrib.auth.middleware.AuthenticationMiddleware” as it needs access to the authenticated user.
cobalt.settings module#
Cobalt Settings.py
This is the single settings.py for all Cobalt environments.
We manage all configuration differences through environment variables. This provides security for confidential information in the online environments (Test, UAT and Production) which is managed by Elastic Beanstalk through settings which become environment at run-time.
For development, you also need to set environment variables, or it won’t work.
- cobalt.settings.AWS_SES_configuration_set_selector(email_message, dkim_domain=None, dkim_key=None, dkim_selector=None, dkim_headers=())[source]#
Selects the appropriate Amazon Simple Email System configuration set for an email, based on batch size (optionally passed in the email via a custom header X-Myabf-Batch-Size). This function is called by the Django-SES package (specified by AWS_SES_CONFIGURATION_SET), and only when AWS_SES_CONFIGURATION_SET_DEFAULT is set. See django-ses/django-ses and COB-793 for more details.
cobalt.urls module#
cobalt.version module#
cobalt.wsgi module#
WSGI config for cobalt project.
It exposes the WSGI callable as a module-level variable named application
.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/