Index: django/views/static.py
===================================================================
--- django/views/static.py	(Revision 6470)
+++ django/views/static.py	(Arbeitskopie)
@@ -46,6 +46,15 @@
         raise Http404, "Directory indexes are not allowed here."
     if not os.path.exists(fullpath):
         raise Http404, '"%s" does not exist' % fullpath
+    return serve_file(request, fullpath)
+
+def serve_file(request, fullpath):
+    """
+    If you don't want to server static files with apache/lighttpd,
+    you can use this method.
+    One reason might be, that you need to check permissions before you allow
+    access to this file.
+    """
     # Respect the If-Modified-Since header.
     statobj = os.stat(fullpath)
     if not was_modified_since(request.META.get('HTTP_IF_MODIFIED_SINCE'),
