fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix tutorial order
[redakcja.git]
/
apps
/
fileupload
/
urls.py
diff --git
a/apps/fileupload/urls.py
b/apps/fileupload/urls.py
index
290a4cf
..
68bdc48
100644
(file)
--- a/
apps/fileupload/urls.py
+++ b/
apps/fileupload/urls.py
@@
-1,7
+1,12
@@
-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 patterns, url
from fileupload.views import UploadView
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'),
)
)
-