~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlimages/urls.py

  • Committer: Holger Rapp
  • Date: 2009-03-01 20:47:48 UTC
  • Revision ID: sirver@kallisto.local-20090301204748-h3ouqkp8zhv10ydq
First (working) commit of wlimages app, the app that will handle image uploading and managing. Uploading works now; images can only be uploaded once (with the same filename). Much stil missing. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import *
 
2
from views import *
 
3
 
 
4
urlpatterns = patterns('',
 
5
    url(r'^upload/$', upload, name="images_upload" ),
 
6
    url(r'^(?P<image>.+)/(?P<revision>\d+)/$', display, name="images_display" ),
 
7
    url(r'^(?P<image>.+)/$', display, { "revision": 1, }, name="images_display" ),
 
8
)
 
9