~widelands-dev/widelands-website/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
bd = "/some/path"
bd = os.getcwd() # Better make this a static path

STATIC_MEDIA_PATH = bd + '/media'
MEDIA_ROOT = bd + '/media/'
WIDELANDS_SVN_DIR = "/path/to/widelands/trunk/"

DATABASES = {
   'default': {
      'ENGINE': 'django.db.backends.sqlite3',
      'NAME': 'dev.db',
      'USER': '',      # Not used with sqlite3.
      'PASSWORD': '',  # Not used with sqlite3.
      'HOST': '',      # Set to empty string for localhost. Not used with sqlite3.
      'PORT': '',      # Set to empty string for default. Not used with sqlite3.
   }
}


# The following are just dummy values, but needed defined
# To use the registration you have to create an API key pair
# See https://developers.google.com/recaptcha/docs/start
# You have to use 'localhost' as Domain
NORECAPTCHA_SITE_KEY = 'dummy'
NORECAPTCHA_SECRET_KEY = 'dummy'

# The logo used for mainpage
LOGO_FILE = 'Logo_alpha.png'

# Setting an email backend prevents 'connection refused' errors
# Don't use this on the widelands server!
# This Backend shows Emails in console
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# Uncomment 'LOGGING = {...}' for debugging purposes when you have set DEBUG=False.
# Use then in the code:

# import logging
# log = logging.getLogger(__name__)
# log.info('Variable x: %s', x)

# This prints the value for Variable 'x' to log.txt

#LOGGING = {
#    'version': 1,
#    'disable_existing_loggers': False,
#    'handlers': {
#        'logfile': {
#            'level':'DEBUG',
#            'class':'logging.FileHandler',
#            'filename': bd + "/log.txt",
#        },
#    },
#    'root': {
#        'level': 'INFO',
#        'handlers': ['logfile']
#    },
#}