From 872af56e2cd00669f13a80c74710bf7b9a19940e Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 29 Oct 2018 18:25:35 -0400 Subject: [PATCH] settings: support an external settings file Fixes #8 --- etesync_server/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etesync_server/settings.py b/etesync_server/settings.py index 9d5f119..d4b93d8 100644 --- a/etesync_server/settings.py +++ b/etesync_server/settings.py @@ -136,3 +136,9 @@ JOURNAL_API_PERMISSIONS = ( # Cors CORS_ORIGIN_ALLOW_ALL = True + +# Make an `etesync_site_settings` module available to override settings. +try: + from etesync_site_settings import * +except ImportError: + pass