]> git.openstreetmap.org Git - osqa.git/blob - settings_local.py.dist
Merge pull request #46 from udacity/subfolder_fixes
[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 LOGGING = {
7     'version': 1,
8     'formatters': {
9         'default': {
10             'format': '%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
11         }
12     },
13     'handlers': {
14         'file': {
15             'level': 'DEBUG',
16             'class': 'logging.FileHandler',
17             'formatter': 'default',
18             'filename': os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
19         },
20     },
21     'loggers' : {
22         # ensure that all log entries are propagated to root
23         'django': { 'propagate': True },
24         'django.request': { 'propagate': True },
25         'django.security': { 'propagate': True },
26         'py.warnings': { 'propagate': True },
27     },
28     'root': {
29         'handlers': ['file'],
30         'level': 'DEBUG',
31     },
32 }
33
34 #ADMINS and MANAGERS
35 ADMINS = ()
36 MANAGERS = ADMINS
37
38 DEBUG = False
39 DEBUG_TOOLBAR_CONFIG = {
40     'INTERCEPT_REDIRECTS': True
41 }
42 TEMPLATE_DEBUG = DEBUG
43 INTERNAL_IPS = ('127.0.0.1',)
44 ALLOWED_HOSTS = ('yourhostname.com',)
45
46 DATABASES = {
47     'default': {
48         'ENGINE': 'django.db.backends.mysql',
49         'NAME': 'osqa',
50         'USER': 'root',
51         'PASSWORD': '',
52         'HOST': '',
53         'PORT': '',
54         'CONN_MAX_AGE': 600,
55     }
56 }
57
58 CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/')
59 #CACHE_BACKEND = 'dummy://'
60 SESSION_ENGINE = 'django.contrib.sessions.backends.db'
61 # Customize the values below if OSQA is in a subfolder and especially you're planning on
62 # running multiple Django applications (OSQA or others) on the same domain in different
63 # subfolders
64 #SESSION_COOKIE_PATH = '/'
65 #CSRF_COOKIE_PATH = '/'
66
67 # This should be equal to your domain name, plus the web application context.
68 # This shouldn't be followed by a trailing slash.
69 # I.e., http://www.yoursite.com or http://www.hostedsite.com/yourhostapp
70 APP_URL = 'http://'
71
72 #LOCALIZATIONS
73 TIME_ZONE = 'America/New_York'
74
75 #OTHER SETTINGS
76
77 USE_I18N = True
78 LANGUAGE_CODE = 'en'
79
80 OSQA_DEFAULT_SKIN = 'default'
81
82 DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']