From 94b48d008500a4cdd8ce62be385acb0e8890c781 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 18 Jul 2017 10:23:51 +0200 Subject: [PATCH] Setup settings in case of Travis tests --- common/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/settings.py b/common/settings.py index 9444467..7f7684f 100644 --- a/common/settings.py +++ b/common/settings.py @@ -153,4 +153,7 @@ INSTRUCTOR_IMPORT_MAPPING = { CHARGE_SHEET_TITLE = "Feuille de charge pour l'année scolaire 2017-2018" -from .local_settings import * +if 'TRAVIS' in os.environ: + SECRET_KEY = 'secretkeyfortravistests' +else: + from .local_settings import *