From: Jan Szejko Date: Thu, 19 Jan 2017 12:34:32 +0000 (+0100) Subject: add constance X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/a199e4076433fb909b06662012454477687c5e5c?ds=sidebyside add constance --- diff --git a/redakcja/settings/__init__.py b/redakcja/settings/__init__.py index 2d04c8dc..68a2c2f5 100644 --- a/redakcja/settings/__init__.py +++ b/redakcja/settings/__init__.py @@ -18,6 +18,14 @@ DATABASES = { } } +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 diff --git a/redakcja/settings/common.py b/redakcja/settings/common.py index c32b6ad9..e2a0a2d9 100644 --- a/redakcja/settings/common.py +++ b/redakcja/settings/common.py @@ -126,6 +126,8 @@ INSTALLED_APPS = ( 'fileupload', 'pipeline', 'modeltranslation', + 'constance', + 'constance.backends.database', 'catalogue', # 'cover', diff --git a/requirements.txt b/requirements.txt index c3e61b2d..3941b77b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,6 +24,7 @@ django-forms-bootstrap jsonfield django-email-extras django-modeltranslation>=0.12,<0.13 +django-constance[database] celery>=3.1.12,<3.2 kombu>3.0,<3.1