update editor
[redakcja.git] / redakcja / settings / __init__.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 from __future__ import absolute_import
7 from os import path
8 from redakcja.settings.common import *
9
10 DATABASES = {
11     'default': {
12         'ENGINE': 'django.db.backends.sqlite3',
13         'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'),
14         'USER': '',                      # Not used with sqlite3.
15         'PASSWORD': '',                  # Not used with sqlite3.
16         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
17         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
18     }
19 }
20
21 CONSTANCE_CONFIG = {
22     'NOTIFY_EMAIL': ('zofia.radziwill@nowoczesnapolska.org.pl',
23                      'e-mail addresses (separated with semicolons) to be notified about new organizations '
24                      'and published documents'),
25 }
26
27 CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
28
29
30 LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', ('logging.cfg' if not DEBUG else 'logging.cfg.dev'))
31 try:
32     import logging
33
34     if os.path.isfile(LOGGING_CONFIG_FILE):
35         import logging.config
36         logging.config.fileConfig(LOGGING_CONFIG_FILE)
37     else:
38         import sys
39         logging.basicConfig(stream=sys.stderr)
40 except (ImportError,), exc:
41     raise
42
43
44 try:
45     from redakcja.localsettings import *
46 except ImportError:
47     pass