debian: load settings from settings.d
This commit is contained in:
parent
c3dbb781a9
commit
b7adc1dda6
|
@ -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,4 +1,5 @@
|
|||
/etc/petale
|
||||
/etc/petale/settings.d
|
||||
/usr/lib/petale
|
||||
/var/lib/petale/collectstatic
|
||||
/var/lib/petale/media
|
||||
|
|
Loading…
Reference in New Issue