Slide 24
Slide 24 text
Charm settings.py
import glob
from os.path import abspath, dirname, join
PROJECT_DIR = abspath(dirname(__file__))
conffiles = glob.glob(join(PROJECT_DIR, '{{ dir }}', '*.py'))
conffiles.sort()
if not 'INSTALLED_APPS' in locals():
from django.conf.global_settings import *
for f in conffiles:
exec(open(abspath(f)).read())