X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/43116c58e5c56f94ef358a5a17fb13a252e02531..b2d61af6200bf8281e5466a183eae491440f4c1a:/apps/fileupload/urls.py diff --git a/apps/fileupload/urls.py b/apps/fileupload/urls.py index 290a4cf4..1098ec64 100644 --- a/apps/fileupload/urls.py +++ b/apps/fileupload/urls.py @@ -1,7 +1,11 @@ -from django.conf.urls.defaults import * +# -*- coding: utf-8 -*- +# +# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.conf.urls import url from fileupload.views import UploadView -urlpatterns = patterns('', - (r'^(?P.+)$', UploadView.as_view(), {}, 'upload'), +urlpatterns = ( + url(r'^(?P(?:.*/)?)$', UploadView.as_view(), name='fileupload'), ) -