# -*- coding: utf-8 -*-
import os.path
-PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
+PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
DEBUG = False
TEMPLATE_DEBUG = DEBUG
}
# Import localsettings file, which may override settings defined here
+
+from localsettings import *
+
+try:
+ import logging
+ if os.path.isfile(LOGGING_CONFIG_FILE):
+ import logging.config
+ logging.config.fileConfig(LOGGING_CONFIG_FILE)
+ else:
+ import sys
+ logging.basicConfig(stream=sys.stderr)
+except ImportError as exc:
+ raise