~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to local_settings.py.sample

  • Committer: franku
  • Date: 2018-11-19 17:19:29 UTC
  • mfrom: (502.1.6 django_ratings)
  • Revision ID: somal@arcor.de-20181119171929-zclpax3wz59lnu5l
replaced djangoratings with django-star-rating

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
import os
9
9
import re
10
10
 
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/')
 
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
 
14
16
 
15
17
# If you are using the developer version of widelands from Launchpad
16
18
# set WIDELANDS_SVN_DIR to the correct path. See also:
87
89
#        'logfile': {
88
90
#            'level':'DEBUG',
89
91
#            'class':'logging.FileHandler',
90
 
#            'filename': os.getcwd() + "/log.txt",
 
92
#            'filename': bd + "/log.txt",
91
93
#        },
92
94
#    },
93
95
#    'root': {