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.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/