14
'ENGINE': 'django.db.backends.sqlite3',
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.
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.
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
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',
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',
79
69
ROOT_URLCONF = 'widelands.urls'
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'
118
102
######################
119
103
# Pybb Configuration #
120
104
######################
121
105
PYBB_ATTACHMENT_ENABLE = False
122
PYBB_DEFAULT_MARKUP = 'markdown'
124
##############################################
125
# Link classification and other Markup stuff #
126
##############################################
128
"xoops.widelands.org"
130
SMILEY_DIR = MEDIA_URL + "img/smileys/"
131
# Keep this list ordered by length of 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"),
152
# This needs to be done to keep some stuff hidden from markdown
153
SMILEY_PREESCAPING = [
157
###############################
158
# Sphinx (Search prog) Config #
159
###############################
161
SPHINX_API_VERSION = 0x116
166
TRACKING_CLEANUP_TIMEOUT=48
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
176
#####################
177
# ChangeLog display #
178
#####################
179
BZR_URL = r"http://bazaar.launchpad.net/%%7Ewidelands-dev/widelands/trunk/revision/%s"
184
THUMBNAIL_SIZE = ( 160, 160 )
186
107
INSTALLED_APPS = (
187
108
'django.contrib.auth',