mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Update example to use new path
construct
This commit is contained in:
parent
cceb416098
commit
4a69b842f2
|
@ -122,7 +122,7 @@ If it is called without a `filename` URL keyword argument, then the client must
|
|||
# urls.py
|
||||
urlpatterns = [
|
||||
# ...
|
||||
url(r'^upload/(?P<filename>[^/]+)$', FileUploadView.as_view())
|
||||
path('upload/<str:filename>/', FileUploadView.as_view())
|
||||
]
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue
Block a user