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