~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlimages/urls.py

  • 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 views import *
3
3
 
4
 
urlpatterns = patterns('',
 
4
urlpatterns = [
5
5
    url(r'^upload/(?P<content_type>\d+)/(?P<object_id>\d+)/(?P<next>.*)$', upload, name="wlimages_upload" ),
6
6
    url(r'^(?P<image>.+)/(?P<revision>\d+)/$', display, name="images_display" ),
7
7
    url(r'^(?P<image>.+)/$', display, { "revision": 1, }, name="images_display" ),
8
 
)
9
 
 
 
8
]
 
 
b'\\ No newline at end of file'