]> git.openstreetmap.org Git - osqa.git/blob - settings_local.py.dist
Merging the experimental branch back to trunk.
[osqa.git] / settings_local.py.dist
1 # encoding:utf-8
2 import os.path
3 from django.utils.translation import ugettext as _
4
5 def check_local_setting(name, value):
6     local_vars = locals()
7     if name in local_vars and local_vars[name] == value:
8         return True
9     else:
10         return False
11
12 SITE_SRC_ROOT = os.path.dirname(__file__)
13 LOG_FILENAME = 'django.osqa.log'
14
15 #for logging
16 import logging
17 logging.basicConfig(
18     filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
19     level=logging.ERROR,
20     format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
21 )
22
23 #ADMINS and MANAGERS
24 ADMINS = (('Forum Admin', 'forum@example.com'),)
25 MANAGERS = ADMINS
26
27 DEBUG = True
28 DEBUG_TOOLBAR_CONFIG = {
29     'INTERCEPT_REDIRECTS': True
30 }
31 TEMPLATE_DEBUG = DEBUG
32 INTERNAL_IPS = ('127.0.0.1',)
33
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
38 DATABASE_HOST = ''
39 DATABASE_PORT = ''
40
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'
44
45 APP_URL = 'http://' #used by email notif system and RSS
46
47 #LOCALIZATIONS
48 TIME_ZONE = 'America/New_York'
49
50 ###########################
51 #
52 #   this will allow running your forum with url like http://site.com/forum
53 #
54 #   FORUM_SCRIPT_ALIAS = 'forum/'
55 #
56 FORUM_SCRIPT_ALIAS = '' #no leading slash, default = '' empty string
57
58
59 #OTHER SETTINGS
60
61 USE_I18N = True
62 LANGUAGE_CODE = 'en'
63 EMAIL_VALIDATION = 'off' #string - on|off
64 MIN_USERNAME_LENGTH = 1
65 EMAIL_UNIQUE = False
66
67 WIKI_ON = True
68 FEEDBACK_SITE_URL = None #None or url
69 EDITABLE_SCREEN_NAME = False #True or False - can user change screen name?
70
71 DJANGO_VERSION = 1.1
72 RESOURCE_REVISION=4
73
74 OSQA_DEFAULT_SKIN = 'default'
75
76 DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']
77
78 from forum.settings import *