From 3ab0a2e1d9d5c05790483336af7b250a733ccdee Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Mon, 20 Aug 2018 14:24:25 +0200
Subject: [PATCH] Added test settings.

---
 opentech/settings/test.py | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 opentech/settings/test.py

diff --git a/opentech/settings/test.py b/opentech/settings/test.py
new file mode 100644
index 000000000..e9c42671b
--- /dev/null
+++ b/opentech/settings/test.py
@@ -0,0 +1,34 @@
+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'
-- 
GitLab