1
0
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:
Alex Gaynor
2013-11-02 10:18:46 -07:00
parent 8b3d9d96ed
commit 19256f300e
67 changed files with 171 additions and 2 deletions

View File

@@ -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

View File

@@ -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.