debian: load settings from settings.d

This commit is contained in:
Benjamin Dauvergne 2018-03-30 11:55:29 +02:00
parent c3dbb781a9
commit b7adc1dda6
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# This file is sourced by "execfile" from petale.settings
import os
import glob
from django.core.exceptions import ImproperlyConfigured
PROJECT_NAME = 'petale'
@ -123,3 +125,6 @@ if 'GRAYLOG_URL' in os.environ:
LOGGING['loggers']['']['handlers'].append('gelf')
execfile(os.path.join(ETC_DIR, 'settings.py'))
for filename in sorted(glob.glob(os.path.join(ETC_DIR, 'settings.d', '*.py'))):
execfile(filename)

1
debian/petale.dirs vendored
View File

@ -1,4 +1,5 @@
/etc/petale
/etc/petale/settings.d
/usr/lib/petale
/var/lib/petale/collectstatic
/var/lib/petale/media