~widelands-dev/widelands-website/trunk

173.3.1 by Holger Rapp
added local sample
1
import os
440.2.2 by janus-jhor
local_settings.py.sample Aufräumen und Erweitern
2
import re
3
173.3.1 by Holger Rapp
added local sample
4
bd = os.getcwd() # Better make this a static path
5
6
STATIC_MEDIA_PATH = bd + '/media'
7
MEDIA_ROOT = bd + '/media/'
325.1.23 by Shevonar
Small fixes, removed old stuff
8
WIDELANDS_SVN_DIR = "/path/to/widelands/trunk/"
173.3.1 by Holger Rapp
added local sample
9
254 by Holger Rapp
Fixed a few deprecation warnings and reparied cross site scripting fixes for AJAX requests
10
DATABASES = {
11
   'default': {
12
      'ENGINE': 'django.db.backends.sqlite3',
13
      'NAME': 'dev.db',
14
      'USER': '',      # Not used with sqlite3.
15
      'PASSWORD': '',  # Not used with sqlite3.
16
      'HOST': '',      # Set to empty string for localhost. Not used with sqlite3.
17
      'PORT': '',      # Set to empty string for default. Not used with sqlite3.
18
   }
19
}
173.3.1 by Holger Rapp
added local sample
20
21
404.2.48 by franku
moved some settings to local_settings.py.sample
22
# The following are just dummy values, but needed defined
415.2.2 by franku
minor explanataions and additions to local_settings.py.sample
23
# To use the registration you have to create an API key pair
24
# See https://developers.google.com/recaptcha/docs/start
25
# You have to use 'localhost' as Domain
404.2.48 by franku
moved some settings to local_settings.py.sample
26
NORECAPTCHA_SITE_KEY = 'dummy'
27
NORECAPTCHA_SECRET_KEY = 'dummy'
404.2.55 by franku
added mainpage context_processors
28
29
# The logo used for mainpage
30
LOGO_FILE = 'Logo_alpha.png'
415.2.2 by franku
minor explanataions and additions to local_settings.py.sample
31
32
# Setting an email backend prevents 'connection refused' errors
415.2.3 by franku
fixed missing import; added migration to remove two fields from wlggz_ggzauth
33
# Don't use this on the widelands server!
415.2.2 by franku
minor explanataions and additions to local_settings.py.sample
34
# This Backend shows Emails in console
35
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
36
422.1.12 by franku
fix letest posts; no hidden posts in feeds
37
# Anti spam keywords
38
# If these are found, the posts/topics in forum get hidden
422.1.14 by franku
removed blank line
39
ANTI_SPAM_BODY = ['spam']
40
ANTI_SPAM_TOPIC = ['spam']
440.2.2 by janus-jhor
local_settings.py.sample Aufräumen und Erweitern
41
ANTI_SPAM_PHONE_NR = re.compile('\d{8,16}')
422.1.12 by franku
fix letest posts; no hidden posts in feeds
42
415.2.2 by franku
minor explanataions and additions to local_settings.py.sample
43
# Uncomment 'LOGGING = {...}' for debugging purposes when you have set DEBUG=False.
44
# Use then in the code:
45
46
# import logging
47
# log = logging.getLogger(__name__)
48
# log.info('Variable x: %s', x)
49
50
# This prints the value for Variable 'x' to log.txt
51
52
#LOGGING = {
53
#    'version': 1,
54
#    'disable_existing_loggers': False,
55
#    'handlers': {
56
#        'logfile': {
57
#            'level':'DEBUG',
58
#            'class':'logging.FileHandler',
59
#            'filename': bd + "/log.txt",
60
#        },
61
#    },
62
#    'root': {
63
#        'level': 'INFO',
64
#        'handlers': ['logfile']
65
#    },
66
#}