~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to local_settings.py.sample

  • Committer: franku
  • Date: 2018-11-30 08:18:02 UTC
  • mfrom: (508.1.14 django_staticfiles)
  • Revision ID: somal@arcor.de-20181130081802-jzhr0xj81fjg1u66
Implement django's default behavior for static files (css, js, images)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import os
9
9
import re
10
10
 
11
 
bd = os.getcwd() # Better make this a static path
12
 
 
13
 
STATIC_MEDIA_PATH = os.path.join(bd, 'media')
14
 
MEDIA_ROOT = os.path.join(bd, 'media/')
15
 
 
 
11
# Absolute path for uploaded files, e.g.:
 
12
# images for avatars, wiki, wlscreens, news cathegories and also mapfiles 
 
13
MEDIA_ROOT = os.path.join(os.getcwd(), 'media/')
16
14
 
17
15
# If you are using the developer version of widelands from Launchpad
18
16
# set WIDELANDS_SVN_DIR to the correct path. See also:
89
87
#        'logfile': {
90
88
#            'level':'DEBUG',
91
89
#            'class':'logging.FileHandler',
92
 
#            'filename': bd + "/log.txt",
 
90
#            'filename': os.getcwd() + "/log.txt",
93
91
#        },
94
92
#    },
95
93
#    'root': {