style
[redakcja.git] / redakcja / settings / __init__.py
1 # -*- coding: utf-8 -*-
2 from __future__ import absolute_import
3 from os import path
4 from redakcja.settings.common import *
5
6 DATABASES = {
7     'default': {
8         'ENGINE': 'django.db.backends.sqlite3',
9         'NAME': path.join(PROJECT_ROOT, 'dev.sqlite'),
10         'USER': '',                      # Not used with sqlite3.
11         'PASSWORD': '',                  # Not used with sqlite3.
12         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
13         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
14     }
15 }
16
17 LOGGING_CONFIG_FILE = os.path.join(PROJECT_ROOT, 'config', ('logging.cfg' if not DEBUG else 'logging.cfg.dev'))
18 try:
19     import logging
20
21     if os.path.isfile(LOGGING_CONFIG_FILE):
22         import logging.config
23         logging.config.fileConfig(LOGGING_CONFIG_FILE)
24     else:
25         import sys
26         logging.basicConfig(stream=sys.stderr)
27 except (ImportError,), exc:
28     raise
29
30
31 try:
32     from redakcja.localsettings import *
33 except ImportError:
34     pass