~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to settings.py

  • Committer: franku
  • Date: 2018-11-27 17:01:42 UTC
  • Revision ID: somal@arcor.de-20181127170142-8qmqkxfiynve9e6m
don't collect static files for the documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
# Examples: "http://media.lawrence.com", "http://example.com/media/"
57
57
MEDIA_URL = '/wlmedia/'
58
58
 
59
 
# Absoltute path where static files from thirdparty apps will be collected using
 
59
# Absolute path where static files from thirdparty apps will be collected using
60
60
# the command: ./manage.py collectstatic
61
 
STATIC_ROOT = os.path.join(BASE_DIR, 'media/static_foreign/')
 
61
STATIC_ROOT = os.path.join(BASE_DIR, 'media/static_collected/')
62
62
 
63
63
# URL to use when referring to static files located in STATIC_ROOT.
64
64
# Must be different than MEDIA_URL!
73
73
# List of finder classes that know how to find static files in
74
74
# various locations.
75
75
STATICFILES_FINDERS = [
76
 
    'django.contrib.staticfiles.finders.FileSystemFinder',
77
76
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
78
77
]
79
78
 
111
110
    # Modified 3rd party apps
112
111
    'wiki.apps.WikiConfig',  # This is based on wikiapp, but has some local modifications
113
112
    'news',  # This is based on simple-blog, but has some local modifications
114
 
    'news.managers',
115
113
    'pybb.apps.PybbConfig',  # Feature enriched version of pybb
116
114
 
117
115
    # Thirdparty apps
204
202
    'xoops.widelands.org'
205
203
]
206
204
 
207
 
SMILEY_DIR = MEDIA_URL + 'img/smileys/'
 
205
SMILEY_DIR = STATIC_URL + 'img/smileys/'
208
206
# Keep this list ordered by length of smileys
209
207
SMILEYS = [
210
208
    ('O:-)', 'face-angel.png'),