68a2c2f58feb858aafd517b33ee0b1be749294e4
[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 address for notifications about new organizations and published projects'),
24 }
25
26 CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
27
28
29 LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', ('logging.cfg' if not DEBUG else 'logging.cfg.dev'))
30 try:
31     import logging
32
33     if os.path.isfile(LOGGING_CONFIG_FILE):
34         import logging.config
35         logging.config.fileConfig(LOGGING_CONFIG_FILE)
36     else:
37         import sys
38         logging.basicConfig(stream=sys.stderr)
39 except (ImportError,), exc:
40     raise
41
42
43 try:
44     from redakcja.localsettings import *
45 except ImportError:
46     pass