mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Continue to attack E302 violations
This commit is contained in:
@@ -6,6 +6,7 @@ from django.utils.six.moves.urllib.request import url2pathname
|
||||
from django.contrib.staticfiles import utils
|
||||
from django.contrib.staticfiles.views import serve
|
||||
|
||||
|
||||
class StaticFilesHandler(WSGIHandler):
|
||||
"""
|
||||
WSGI middleware that intercepts calls to the static files directory, as
|
||||
|
||||
@@ -3,6 +3,7 @@ from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = []
|
||||
|
||||
|
||||
def staticfiles_urlpatterns(prefix=None):
|
||||
"""
|
||||
Helper function to return a URL pattern for serving static files.
|
||||
|
||||
Reference in New Issue
Block a user