Author: gwilson
Date: 2007-10-13 23:10:02 -0500 (Sat, 13 Oct 2007)
New Revision: 6505

Modified:
   django/trunk/django/views/static.py
Log:
Added module docstring and corrected order of imports to adhere to PEP 8.


Modified: django/trunk/django/views/static.py
===================================================================
--- django/trunk/django/views/static.py 2007-10-14 03:46:44 UTC (rev 6504)
+++ django/trunk/django/views/static.py 2007-10-14 04:10:02 UTC (rev 6505)
@@ -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.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to