Skip to content
Snippets Groups Projects
Commit 3ab0a2e1 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Added test settings.

parent e11bf91b
No related branches found
No related tags found
No related merge requests found
import os
from .base import * # noqa
# Do not set SECRET_KEY, Postgres or LDAP password or any other sensitive data here.
# Instead, use environment variables or create a local.py file on the server.
# Disable debug mode
DEBUG = False
# Cache everything for 10 minutes
# This only applies to pages that do not have a more specific cache-control
# setting. See urls.py
CACHE_CONTROL_MAX_AGE = 600
# Configuration from environment variables
# Alternatively, you can set these in a local.py file on the server
env = os.environ.copy()
# Basic configuration
APP_NAME = env.get('APP_NAME', 'opentech')
SECURE_SSL_REDIRECT = False
if 'SECRET_KEY' in env:
SECRET_KEY = env['SECRET_KEY']
# Email config
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment