]> git.openstreetmap.org Git - osqa.git/blob - settings_local.py.dist
revert previous commit
[osqa.git] / settings_local.py.dist
1 # encoding:utf-8
2 import os.path
3
4 SITE_SRC_ROOT = os.path.dirname(__file__)
5 LOG_FILENAME = 'django.osqa.log'
6
7 #for logging
8 import logging
9 logging.basicConfig(
10     filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
11     level=logging.ERROR,
12     format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
13 )
14
15 #ADMINS and MANAGERS
16 ADMINS = ()
17 MANAGERS = ADMINS
18
19 DEBUG = False
20 DEBUG_TOOLBAR_CONFIG = {
21     'INTERCEPT_REDIRECTS': True
22 }
23 TEMPLATE_DEBUG = DEBUG
24 INTERNAL_IPS = ('127.0.0.1',)
25
26
27 DATABASES = {
28     'default': {
29         'ENGINE': 'django.db.backends.mysql',
30         'NAME': 'osqa',
31         'USER': 'root',
32         'PASSWORD': '',
33         'HOST': '',
34         'PORT': '',
35     }
36 }
37
38 CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/')
39 #CACHE_BACKEND = 'dummy://'
40 SESSION_ENGINE = 'django.contrib.sessions.backends.db'
41
42 # This should be equal to your domain name, plus the web application context.
43 # This shouldn't be followed by a trailing slash.
44 # I.e., http://www.yoursite.com or http://www.hostedsite.com/yourhostapp
45 APP_URL = 'http://'
46
47 #LOCALIZATIONS
48 TIME_ZONE = 'America/New_York'
49
50 #OTHER SETTINGS
51
52 USE_I18N = True
53 LANGUAGE_CODE = 'en'
54
55 DJANGO_VERSION = 1.1
56 OSQA_DEFAULT_SKIN = 'default'
57
58 DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']