|
@@ -24,7 +24,7 @@ def serve(request, path, document_root=None, show_indexes=False):
|
|
|
|
|
|
from django.views.static import serve
|
|
|
|
|
|
- url(r'^(?P<path>.*)$', serve, {'document_root': '/path/to/my/files/'})
|
|
|
+ path('<path:path>', serve, {'document_root': '/path/to/my/files/'})
|
|
|
|
|
|
in your URLconf. You must provide the ``document_root`` param. You may
|
|
|
also set ``show_indexes`` to ``True`` if you'd like to serve a basic index
|