4 SITE_SRC_ROOT = os.path.dirname(__file__)
5 LOG_FILENAME = 'django.osqa.log'
10 'format': '%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
16 'class': 'logging.FileHandler',
17 'formatter': 'default',
18 'filename': os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
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 },
39 DEBUG_TOOLBAR_CONFIG = {
40 'INTERCEPT_REDIRECTS': True
42 TEMPLATE_DEBUG = DEBUG
43 INTERNAL_IPS = ('127.0.0.1',)
44 ALLOWED_HOSTS = ('yourhostname.com',)
48 'ENGINE': 'django.db.backends.mysql',
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'
62 # This should be equal to your domain name, plus the web application context.
63 # This shouldn't be followed by a trailing slash.
64 # I.e., http://www.yoursite.com or http://www.hostedsite.com/yourhostapp
68 TIME_ZONE = 'America/New_York'
76 OSQA_DEFAULT_SKIN = 'default'
78 DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']