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