Update example to use new path construct

This commit is contained in:
rvernica 2019-04-04 10:23:38 -07:00 committed by GitHub
parent cceb416098
commit 4a69b842f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ If it is called without a `filename` URL keyword argument, then the client must
# urls.py # urls.py
urlpatterns = [ urlpatterns = [
# ... # ...
url(r'^upload/(?P<filename>[^/]+)$', FileUploadView.as_view()) path('upload/<str:filename>/', FileUploadView.as_view())
] ]
--- ---