mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +00:00
Removes document_root argument from django.contrib.staticfiles.views.serve
This argument can be removed, because the new way of finding static files doesn't take document_root into account at all.
This commit is contained in:
parent
c12891e8cd
commit
2db9cbe97c
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ from django.views import static
|
||||||
|
|
||||||
from django.contrib.staticfiles import finders
|
from django.contrib.staticfiles import finders
|
||||||
|
|
||||||
def serve(request, path, document_root=None, insecure=False, **kwargs):
|
def serve(request, path insecure=False, **kwargs):
|
||||||
"""
|
"""
|
||||||
Serve static files below a given point in the directory structure or
|
Serve static files below a given point in the directory structure or
|
||||||
from locations inferred from the staticfiles finders.
|
from locations inferred from the staticfiles finders.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue