X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/43116c58e5c56f94ef358a5a17fb13a252e02531..1ca6d764bb26082e103bfa81e586de5ee43eef02:/apps/fileupload/urls.py?ds=inline diff --git a/apps/fileupload/urls.py b/apps/fileupload/urls.py index 290a4cf4..0f239a26 100644 --- a/apps/fileupload/urls.py +++ b/apps/fileupload/urls.py @@ -1,7 +1,8 @@ -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.+)$', UploadView.as_view(), {}, 'upload'), +urlpatterns = patterns( + '', + url(r'^(?P(?:.*/)?)$', UploadView.as_view(), name='fileupload'), ) -