c5df1a77311864d2885958391f021a5ab778edd7
[edumed.git] / edumed / settings.py
1 # -*- coding: utf-8 -*-
2 import os.path
3 import glob
4
5 conffiles = glob.glob(os.path.join(
6     os.path.dirname(__file__), 'settings.d', '*.py'))
7 conffiles.sort()
8 for f in conffiles:
9     execfile(os.path.abspath(f))
10
11 try:
12     execfile(os.path.abspath(os.path.join(
13         os.path.dirname(__file__), 'localsettings.py')))
14 except IOError:
15     pass