-from django.conf.urls.defaults import *
+from django.conf.urls import patterns, url
from fileupload.views import UploadView
urlpatterns = patterns('',
- (r'^(?P<path>.+)$', UploadView.as_view(), {}, 'upload'),
+ url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='fileupload'),
)