X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5780495e13ec2d55bc2dee96dec372a9ea395462..88dbb13a387b1e3a2b45fde672179ed552c269c1:/redakcja/settings/common.py diff --git a/redakcja/settings/common.py b/redakcja/settings/common.py index 379f5b59..9689f729 100644 --- a/redakcja/settings/common.py +++ b/redakcja/settings/common.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +from __future__ import absolute_import import os.path PROJECT_ROOT = os.path.realpath(os.path.dirname(os.path.dirname(__file__))) @@ -102,8 +103,6 @@ FIREPYTHON_LOGGER_NAME = "fnp" # CAS_SERVER_URL = "http://cas.fnp.pl/ CAS_LOGOUT_COMPLETELY = True -from compress_settings import * - INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', @@ -139,18 +138,7 @@ WL_API_CONFIG = { "AUTH_PASSWD": "platforma", } -# Import localsettings file, which may override settings defined here - 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 NameError: - print "No logging" + from redakcja.settings.compress import * +except ImportError: pass -except ImportError as exc: - raise