~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to settings.py

  • Committer: Holger Rapp
  • Date: 2009-02-26 22:38:49 UTC
  • Revision ID: sirver@kallisto.local-20090226223849-1563ij0uuw0lz0zu
First version of widelands online help

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
MANAGERS = ADMINS
11
11
 
12
 
DATABASES = {
13
 
   'default': {
14
 
      'ENGINE': 'django.db.backends.sqlite3',
15
 
      'NAME': 'dev.db',
16
 
      'USER': '',      # Not used with sqlite3.
17
 
      'PASSWORD': '',  # Not used with sqlite3.
18
 
      'HOST': '',      # Set to empty string for localhost. Not used with sqlite3.
19
 
      'PORT': '',      # Set to empty string for default. Not used with sqlite3.
20
 
   }
21
 
}
 
12
DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
 
13
DATABASE_NAME = 'dev.db'             # Or path to database file if using sqlite3.
 
14
DATABASE_USER = ''             # Not used with sqlite3.
 
15
DATABASE_PASSWORD = ''         # Not used with sqlite3.
 
16
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
 
17
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
22
18
 
23
19
# Local time zone for this installation. Choices can be found here:
24
20
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
33
29
 
34
30
SITE_ID = 1
35
31
 
36
 
# Where should logged in user go by default?
37
 
LOGIN_REDIRECT_URL="/"
38
 
 
39
32
# If you set this to False, Django will make some optimizations so as not
40
33
# to load the internationalization machinery.
41
 
USE_I18N = False
 
34
USE_I18N = True
42
35
 
43
36
# Absolute path to the directory that holds media.
44
37
# Example: "/home/media/media.lawrence.com/"
59
52
 
60
53
# List of callables that know how to import templates from various sources.
61
54
TEMPLATE_LOADERS = (
62
 
    'django.template.loaders.filesystem.Loader',
63
 
    'django.template.loaders.app_directories.Loader',
 
55
    'django.template.loaders.filesystem.load_template_source',
 
56
    'django.template.loaders.app_directories.load_template_source',
64
57
#     'django.template.loaders.eggs.load_template_source',
65
58
)
66
59
 
69
62
    'django.middleware.gzip.GZipMiddleware', # Remove this, when load gets to high
70
63
    'django.middleware.common.CommonMiddleware',
71
64
    'django.contrib.sessions.middleware.SessionMiddleware',
72
 
    'django.middleware.csrf.CsrfViewMiddleware',
73
65
    'django.contrib.auth.middleware.AuthenticationMiddleware',
74
66
    'pagination.middleware.PaginationMiddleware',
75
 
    'tracking.middleware.VisitorTrackingMiddleware',
76
 
    'tracking.middleware.VisitorCleanUpMiddleware',
77
67
)
78
68
 
79
69
ROOT_URLCONF = 'widelands.urls'
86
76
)
87
77
 
88
78
TEMPLATE_CONTEXT_PROCESSORS = (
89
 
    "django.contrib.auth.context_processors.auth",
 
79
    "django.core.context_processors.auth",
90
80
    "django.core.context_processors.debug",
91
81
    "django.core.context_processors.i18n",
92
82
    "django.core.context_processors.media",
107
97
######################
108
98
# User configuration #
109
99
######################
110
 
AUTH_PROFILE_MODULE = 'wlprofile.Profile'
111
 
DEFAULT_TIME_ZONE = 3
112
 
DEFAULT_MARKUP ="markdown"
113
 
SIGNATURE_MAX_LENGTH = 255
114
 
SIGNATURE_MAX_LINES = 8
115
 
AVATARS_UPLOAD_TO = "profile/avatars"
116
 
AVATAR_HEIGHT = AVATAR_WIDTH = 80
 
100
AUTH_PROFILE_MODULE = 'pybb.Profile'
117
101
 
118
102
######################
119
103
# Pybb Configuration #
120
104
######################
121
105
PYBB_ATTACHMENT_ENABLE = False
122
 
PYBB_DEFAULT_MARKUP = 'markdown'
123
 
 
124
 
##############################################
125
 
# Link classification and other Markup stuff #
126
 
##############################################
127
 
LOCAL_DOMAINS = [
128
 
    "xoops.widelands.org"
129
 
]
130
 
SMILEY_DIR = MEDIA_URL + "img/smileys/"
131
 
# Keep this list ordered by length of smileys
132
 
SMILEYS = [
133
 
    ("O:-)", "face-angel.png"),
134
 
    (":'-(", "face-crying.png"),
135
 
    (">:-)", "face-devilish.png"), # Hack around markdown replacement. see also SMILEY_PREESCAPING
136
 
    (":(|)", "face-monkey.png"),
137
 
    (":-D", "face-grin.png"),
138
 
    ("8-)", "face-glasses.png"),
139
 
    (":-x", "face-kiss.png"),
140
 
    (":-|", "face-plain.png"),
141
 
    (":-(", "face-sad.png"),
142
 
    (":))", "face-smile-big.png"),
143
 
    (":-)", "face-smile.png"),
144
 
    (":-O", "face-surprise.png"),
145
 
    (";-)", "face-wink.png"),
146
 
    (":D", "face-grin.png"),
147
 
    (":(", "face-sad.png"),
148
 
    (":)", "face-smile.png"),
149
 
    (":O", "face-surprise.png"),
150
 
    (";)", "face-wink.png"),
151
 
]
152
 
# This needs to be done to keep some stuff hidden from markdown
153
 
SMILEY_PREESCAPING = [
154
 
    (">:-)", "\>:-)"),
155
 
]
156
 
 
157
 
###############################
158
 
# Sphinx (Search prog) Config #
159
 
###############################
160
 
USE_SPHINX=False
161
 
SPHINX_API_VERSION = 0x116
162
 
 
163
 
############
164
 
# Tracking #
165
 
############
166
 
TRACKING_CLEANUP_TIMEOUT=48
167
 
 
168
 
###########################
169
 
# Widelands SVN directory #
170
 
###########################
171
 
# This is needed for various thinks, for example
172
 
# to access media (for minimap creation) or for online help
173
 
# or for ChangeLog displays
174
 
WIDELANDS_SVN_DIR=""
175
 
 
176
 
#####################
177
 
# ChangeLog display #
178
 
#####################
179
 
BZR_URL = r"http://bazaar.launchpad.net/%%7Ewidelands-dev/widelands/trunk/revision/%s"
180
 
 
181
 
###############
182
 
# Screenshots #
183
 
###############
184
 
THUMBNAIL_SIZE = ( 160, 160 )
185
106
 
186
107
INSTALLED_APPS = (
187
108
    'django.contrib.auth',
195
116
    # TODO: only temporary for webdesign stuff
196
117
    'django.contrib.webdesign',
197
118
 
198
 
    # Thirdparty apps, but need preload
199
 
    'tracking',
200
 
 
201
119
    # Our own apps
202
120
    'widelands.mainpage',
203
121
    'widelands.online_help',
204
 
    'widelands.wlimages',
205
 
    'widelands.wlwebchat',
206
 
    'widelands.wlrecaptcha',
207
 
    'widelands.wlprofile',
208
 
    'widelands.wlsearch',
209
 
    'widelands.wlpoll',
210
 
    'widelands.wlevents',
211
 
    'widelands.wlmaps',
212
 
    'widelands.wlscreens',
213
 
    'widelands.wlggz',
214
122
 
215
123
    # Modified 3rd party apps
216
124
    'widelands.wiki', # This is based on wikiapp, but has some local modifications
218
126
    'pybb', # Feature enriched version of pybb
219
127
 
220
128
    # Thirdparty apps
 
129
    # 'simplestats',
 
130
    'comment_utils',
221
131
    'threadedcomments',
222
 
    'django_messages',
 
132
    'messages',
223
133
    'registration', # User registration (per Email validation)
224
134
    'pagination',
225
135
    'tagging',
226
136
    'notification',
227
 
    'djangoratings',
228
 
    'sphinxdoc',
229
 
    'south',
230
137
)
231
138
 
232
139
try:
233
140
    from local_settings import *
234
141
except ImportError:
235
142
    pass
236
 
 
237
 
if USE_SPHINX:
238
 
    INSTALLED_APPS += (
239
 
        'djangosphinx',
240
 
    )