3 from django.utils.translation import ugettext as _
5 def check_local_setting(name, value):
7 if name in local_vars and local_vars[name] == value:
12 SITE_SRC_ROOT = os.path.dirname(__file__)
13 LOG_FILENAME = 'django.osqa.log'
18 filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
20 format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
24 ADMINS = (('Forum Admin', 'forum@example.com'),)
28 DEBUG_TOOLBAR_CONFIG = {
29 'INTERCEPT_REDIRECTS': True
31 TEMPLATE_DEBUG = DEBUG
32 INTERNAL_IPS = ('127.0.0.1',)
34 DATABASE_NAME = '' # Or path to database file if using sqlite3.
35 DATABASE_USER = '' # Not used with sqlite3.
36 DATABASE_PASSWORD = '' # Not used with sqlite3.
37 DATABASE_ENGINE = '' #mysql, etc
41 CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/')
42 #CACHE_BACKEND = 'dummy://'
43 SESSION_ENGINE = 'django.contrib.sessions.backends.db'
45 APP_URL = 'http://' #used by email notif system and RSS
48 TIME_ZONE = 'America/New_York'
50 ###########################
52 # this will allow running your forum with url like http://site.com/forum
54 # FORUM_SCRIPT_ALIAS = 'forum/'
56 FORUM_SCRIPT_ALIAS = '' #no leading slash, default = '' empty string
63 EMAIL_VALIDATION = 'off' #string - on|off
64 MIN_USERNAME_LENGTH = 1
68 FEEDBACK_SITE_URL = None #None or url
69 EDITABLE_SCREEN_NAME = False #True or False - can user change screen name?
74 OSQA_DEFAULT_SKIN = 'default'
76 DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']
78 from forum.settings import *