texml in requirements
[redakcja.git] / apps / fileupload / urls.py
index 290a4cf..cd4f46c 100644 (file)
@@ -1,7 +1,7 @@
-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
 from fileupload.views import UploadView
 
 urlpatterns = patterns('',
 from fileupload.views import UploadView
 
 urlpatterns = patterns('',
-    (r'^(?P<path>.+)$', UploadView.as_view(), {}, 'upload'),
+    url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='fileupload'),
 )
 
 )