add constance
authorJan Szejko <janek37@gmail.com>
Thu, 19 Jan 2017 12:34:32 +0000 (13:34 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 19 Jan 2017 12:34:32 +0000 (13:34 +0100)
redakcja/settings/__init__.py
redakcja/settings/common.py
requirements.txt

index 2d04c8d..68a2c2f 100644 (file)
@@ -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
index c32b6ad..e2a0a2d 100644 (file)
@@ -126,6 +126,8 @@ INSTALLED_APPS = (
     'fileupload',
     'pipeline',
     'modeltranslation',
+    'constance',
+    'constance.backends.database',
 
     'catalogue',
     # 'cover',
index c3e61b2..3941b77 100644 (file)
@@ -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