~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to local_urls.py.sample

  • Committer: franku
  • Date: 2018-11-22 13:18:20 UTC
  • Revision ID: somal@arcor.de-20181122131820-8iy25vwbbs1sa393
fixed local_urls.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# Don't use this file on the server!
7
7
 
8
8
local_urlpatterns = [
9
 
   # wl specific static files (css, js) and user media (images, maps)   
 
9
   # Files uploaded by users   
10
10
   url(r'^wlmedia/(?P<path>.*)$',
11
11
       serve,
12
 
       {'document_root': settings.STATIC_MEDIA_PATH},
 
12
       {'document_root': settings.MEDIA_ROOT},
13
13
       name='static_media'),
14
 
   # Static files from third party apps.
 
14
   # Static files. Use the 'collectstatic' command to fetch them
15
15
   url(r'^static/(?P<path>.*)$',
16
16
       serve,
17
17
       {'document_root': settings.STATIC_ROOT},
20
20
   url(r'^documentation/(?P<path>.*)$',
21
21
       serve,
22
22
       {'document_root': path.join(
23
 
         settings.STATIC_MEDIA_PATH, 'documentation/html')},
 
23
         settings.MEDIA_ROOT, 'documentation/html')},
24
24
       name='documentation')
25
25
]
26
26