~widelands-dev/widelands-website/trunk

1 by Holger Rapp
Initial commit of new widelands homepage
1
# Django settings for widelands project.
2
3
DEBUG = True
4
TEMPLATE_DEBUG = DEBUG
5
6
ADMINS = (
7
    # ('Your Name', 'your_email@domain.com'),
8
)
9
10
MANAGERS = ADMINS
11
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.
18
19
# Local time zone for this installation. Choices can be found here:
20
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
21
# although not all choices may be available on all operating systems.
22
# If running in a Windows environment this must be set to the same as your
23
# system time zone.
24
TIME_ZONE = 'Europe/Berlin'
25
26
# Language code for this installation. All choices can be found here:
27
# http://www.i18nguy.com/unicode/language-identifiers.html
28
LANGUAGE_CODE = 'de'
29
30
SITE_ID = 1
31
32
# If you set this to False, Django will make some optimizations so as not
33
# to load the internationalization machinery.
34
USE_I18N = True
35
36
# Absolute path to the directory that holds media.
37
# Example: "/home/media/media.lawrence.com/"
38
MEDIA_ROOT = ''
39
40
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
41
# trailing slash if there is a path component (optional in other cases).
42
# Examples: "http://media.lawrence.com", "http://example.com/media/"
18 by Holger Rapp
Halfway added the forum. Refactored css & basic layout to get rid of this table madness
43
MEDIA_URL = '/wlmedia/'
1 by Holger Rapp
Initial commit of new widelands homepage
44
45
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
46
# trailing slash.
47
# Examples: "http://foo.com/media/", "/media/".
48
ADMIN_MEDIA_PREFIX = '/media/'
49
50
# Make this unique, and don't share it with anybody.
51
SECRET_KEY = '#*bc7*q0-br42fc&6l^x@zzk&(=-#gr!)fn@t30n54n05jkqcu'
52
53
# List of callables that know how to import templates from various sources.
54
TEMPLATE_LOADERS = (
55
    'django.template.loaders.filesystem.load_template_source',
56
    'django.template.loaders.app_directories.load_template_source',
57
#     'django.template.loaders.eggs.load_template_source',
58
)
59
60
MIDDLEWARE_CLASSES = (
28 by Holger Rapp
Added django-messages
61
    # 'simplestats.middleware.RegexLoggingMiddleware',
26 by Holger Rapp
added gzip middleware, added 404 and 500 templates
62
    'django.middleware.gzip.GZipMiddleware', # Remove this, when load gets to high
1 by Holger Rapp
Initial commit of new widelands homepage
63
    'django.middleware.common.CommonMiddleware',
64
    'django.contrib.sessions.middleware.SessionMiddleware',
65
    'django.contrib.auth.middleware.AuthenticationMiddleware',
5 by Holger Rapp
added registration, hacked on login
66
    'pagination.middleware.PaginationMiddleware',
1 by Holger Rapp
Initial commit of new widelands homepage
67
)
68
69
ROOT_URLCONF = 'widelands.urls'
70
71
TEMPLATE_DIRS = (
72
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
73
    # Always use forward slashes, even on Windows.
74
    # Don't forget to use absolute paths, not relative paths.
75
    '/var/www/django_projects/widelands/templates',
76
)
77
5 by Holger Rapp
added registration, hacked on login
78
TEMPLATE_CONTEXT_PROCESSORS = (
79
    "django.core.context_processors.auth",
80
    "django.core.context_processors.debug",
81
    "django.core.context_processors.i18n",
82
    "django.core.context_processors.media",
83
    'django.core.context_processors.request',
84
)
85
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
86
############################
87
# Activation configuration #
88
############################
6 by Holger Rapp
added missing From Email
89
DEFAULT_FROM_EMAIL = 'noreply@widelands.org'
5 by Holger Rapp
added registration, hacked on login
90
ACCOUNT_ACTIVATION_DAYS=2 # Days an activation token keeps active
91
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
92
######################
93
# Wiki configuration #
94
######################
95
WIKI_LOCK_DURATION = 30
96
21 by Holger Rapp
- Forum is now ready to be used
97
######################
98
# User configuration #
99
######################
100
AUTH_PROFILE_MODULE = 'pybb.Profile'
101
102
######################
103
# Pybb Configuration #
104
######################
105
PYBB_ATTACHMENT_ENABLE = False
41 by Holger Rapp
WikiWords in News/Forum Posts, markdown is default markup in forum, bbcode needed to be removed for this to work
106
PYBB_DEFAULT_MARKUP = 'markdown'
21 by Holger Rapp
- Forum is now ready to be used
107
48.1.7 by Holger Rapp
Implemented wishlist bug for colored links
108
#######################
109
# Link classification #
110
#######################
111
LOCAL_DOMAINS = [
112
    "xoops.widelands.org"
113
]
114
1 by Holger Rapp
Initial commit of new widelands homepage
115
INSTALLED_APPS = (
116
    'django.contrib.auth',
117
    'django.contrib.contenttypes',
118
    'django.contrib.sessions',
119
    'django.contrib.sites',
120
    'django.contrib.admin',
5 by Holger Rapp
added registration, hacked on login
121
    'django.contrib.markup',
14 by Holger Rapp
Added notification support for wiki
122
    'django.contrib.humanize',
4 by Holger Rapp
added wlblock tag, refactored main page
123
124
    # TODO: only temporary for webdesign stuff
125
    'django.contrib.webdesign',
126
1 by Holger Rapp
Initial commit of new widelands homepage
127
    # Our own apps
128
    'widelands.mainpage',
32 by Holger Rapp
First version of widelands online help
129
    'widelands.online_help',
48.4.1 by Holger Rapp
Put dead ugly webchat back on page
130
    'widelands.wlwebchat',
48.1.17 by Holger Rapp
Added recaptcha on registration site
131
    'widelands.wlrecaptcha',
17 by Holger Rapp
Main Page contains now the same informations as before
132
133
    # Modified 3rd party apps
11 by Holger Rapp
Imported wikiapp into our repository, because we did some local changes (users must be logged in to edit wiki pages)
134
    'widelands.wiki', # This is based on wikiapp, but has some local modifications
17 by Holger Rapp
Main Page contains now the same informations as before
135
    'widelands.news', # This is based on simple-blog, but has some local modifications
21 by Holger Rapp
- Forum is now ready to be used
136
    'pybb', # Feature enriched version of pybb
1 by Holger Rapp
Initial commit of new widelands homepage
137
138
    # Thirdparty apps
28 by Holger Rapp
Added django-messages
139
    # 'simplestats',
31 by Holger Rapp
Added threadedcomments to news items
140
    'threadedcomments',
28 by Holger Rapp
Added django-messages
141
    'messages',
5 by Holger Rapp
added registration, hacked on login
142
    'registration', # User registration (per Email validation)
143
    'pagination',
1 by Holger Rapp
Initial commit of new widelands homepage
144
    'tagging',
31 by Holger Rapp
Added threadedcomments to news items
145
    'notification',
1 by Holger Rapp
Initial commit of new widelands homepage
146
)
147
148
try:
149
    from local_settings import *
150
except ImportError:
151
    pass