Created
July 25, 2016 07:44
-
-
Save sobolevn/006c734f0520439a4b6c16891d65406c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from split_settings.tools import optional, include | |
from components import CONFIG | |
# To change settings file: runserver --settings=bitcoins.other_settings | |
if CONFIG['DJANGO_SETTINGS_MODULE'] == 'bitcoins.settings': | |
testing = bool(CONFIG['_DJANGO_TESTING']) | |
base_settings = [ | |
'components/common.py', | |
'components/constants.py', | |
'components/queues.py', | |
] | |
if not testing: | |
settings = base_settings + [ | |
'environments/production.py', | |
optional('environments/development.py'), | |
] | |
else: | |
settings = base_settings + [ | |
'environments/testing.py', | |
] | |
# Include settings for the current env: | |
include(*settings, scope=globals()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment