From a213f83c5d6a7e4f75a8e03beebff5acc8346e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Koci=C3=A1n?= Date: Fri, 10 Aug 2018 19:10:40 +0200 Subject: [PATCH] =?UTF-8?q?Update=20settings=20kv=C5=AFli=20gimlimu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mamweb/settings.py b/mamweb/settings.py index acfbc5ad..6f5d302f 100644 --- a/mamweb/settings.py +++ b/mamweb/settings.py @@ -8,10 +8,10 @@ import os.path # DJANGO_SETTINGS_MODULE=mamweb.settings_ZZZ ./manage.py ... # -if os.path.abspath(__file__).startswith('/akce/MaM/WWW/mamweb-test/'): +if "mamweb-test" in os.path.abspath(__file__): from .settings_test import * -elif os.path.abspath(__file__).startswith('/akce/MaM/WWW/mamweb-prod/'): +elif "mamweb-prod" in os.path.abspath(__file__): from .settings_prod import * else: