X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/fdd62169ba22c4c1be2f2306b5339eadd74ffb6d..a199e4076433fb909b06662012454477687c5e5c:/redakcja/settings/__init__.py diff --git a/redakcja/settings/__init__.py b/redakcja/settings/__init__.py index 600533b9..68a2c2f5 100644 --- a/redakcja/settings/__init__.py +++ b/redakcja/settings/__init__.py @@ -1,11 +1,16 @@ +# -*- coding: utf-8 -*- +# +# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from __future__ import absolute_import from os import path from redakcja.settings.common import * DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), # Or path to database file if using sqlite3. + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'), 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. @@ -13,11 +18,15 @@ DATABASES = { } } -try: - LOGGING_CONFIG_FILE -except NameError: - LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', - ('logging.cfg' if not DEBUG else 'logging.cfg.dev')) +CONSTANCE_CONFIG = { + 'NOTIFY_EMAIL': ('zofia.radziwill@nowoczesnapolska.org.pl', + 'e-mail address for notifications about new organizations and published projects'), +} + +CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend' + + +LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', ('logging.cfg' if not DEBUG else 'logging.cfg.dev')) try: import logging @@ -30,3 +39,8 @@ try: except (ImportError,), exc: raise + +try: + from redakcja.localsettings import * +except ImportError: + pass