fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix unwanted horizontal scrollbar
[redakcja.git]
/
apps
/
fileupload
/
urls.py
diff --git
a/apps/fileupload/urls.py
b/apps/fileupload/urls.py
index
290a4cf
..
1098ec6
100644
(file)
--- 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
from fileupload.views import UploadView
-urlpatterns =
patterns('',
-
(r'^(?P<path>.+)$', UploadView.as_view(), {}, '
upload'),
+urlpatterns =
(
+
url(r'^(?P<path>(?:.*/)?)$', UploadView.as_view(), name='file
upload'),
)
)
-