Permalink
Browse files

Added module docstring and corrected order of imports to adhere to PE…

…P 8.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
gdub committed Oct 14, 2007
1 parent 5f9821a commit a3d015fad09e0376484b0e7c4b00f07243ee3af6
Showing with 9 additions and 3 deletions.
  1. +9 −3 django/views/static.py
View
@@ -1,6 +1,8 @@
-from django.template import loader
-from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseNotModified
-from django.template import Template, Context, TemplateDoesNotExist
+"""
+Views and functions for serving static files. These are only to be used
+during development, and SHOULD NOT be used in a production setting.
+"""
+
import mimetypes
import os
import posixpath
@@ -9,6 +11,10 @@
import stat
import urllib
+from django.template import loader
+from django.http import Http404, HttpResponse, HttpResponseRedirect, HttpResponseNotModified
+from django.template import Template, Context, TemplateDoesNotExist
+
def serve(request, path, document_root=None, show_indexes=False):
"""
Serve static files below a given point in the directory structure.

0 comments on commit a3d015f

Please sign in to comment.