~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to local_urls.py.sample

  • Committer: franku
  • Date: 2016-07-02 12:38:06 UTC
  • mfrom: (404.2.56 widelands)
  • Revision ID: somal@arcor.de-20160702123806-q69u3d48s1prrxds
merged the django1_8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.conf.urls.defaults import *
 
1
from django.conf.urls import *
2
2
from django.conf import settings
3
3
 
4
4
 
5
 
local_urlpatterns = patterns('',
 
5
local_urlpatterns = [
6
6
   url(r'^wlmedia/(?P<path>.*)$',
7
7
       'django.views.static.serve',
8
8
       {'document_root': settings.STATIC_MEDIA_PATH},
11
11
       'django.views.static.serve',
12
12
       {'document_root': settings.STATIC_MEDIA_PATH},
13
13
       name='static_media_pybb'),
14
 
)
 
14
]