fix preview for en
[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 LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', ('logging.cfg' if not DEBUG else 'logging.cfg.dev'))
22 try:
23     import logging
24
25     if os.path.isfile(LOGGING_CONFIG_FILE):
26         import logging.config
27         logging.config.fileConfig(LOGGING_CONFIG_FILE)
28     else:
29         import sys
30         logging.basicConfig(stream=sys.stderr)
31 except (ImportError,), exc:
32     raise
33
34
35 try:
36     from redakcja.localsettings import *
37 except ImportError:
38     pass