def serve(request, path, document_root=None, insecure=False, **kwargs):
 if ((not settings.DEBUG) and (not insecure)):
  raise ImproperlyConfigured("The staticfiles view can only be used in debug mode or if the the --insecure option of 'runserver' is used")
 normalized_path = posixpath.normpath(urllib.unquote(path)).lstrip('/')
 absolute_path = finders.find(normalized_path)
 if (not absolute_path):
  if (path.endswith('/') or (path == '')):
   raise Http404('Directory indexes are not allowed here.')
  raise Http404(("'%s' could not be found" % path))
 (document_root, path) = os.path.split(absolute_path)
 return static.serve(request, path, document_root=document_root, **kwargs)

def serve ( request , path , document_root = None , insecure = False , ** kwargs ) : if ( ( not settings . DEBUG ) and ( not insecure ) ) : raise ImproperlyConfigured ( "The staticfiles view can only be used in debug mode or if the the --insecure option of 'runserver' is used" ) normalized_path = posixpath . normpath ( urllib . unquote ( path ) ) . lstrip ( '/' ) absolute_path = finders . find ( normalized_path ) if ( not absolute_path ) : if ( path . endswith ( '/' ) or ( path == '' ) ) : raise Http404 ( 'Directory indexes are not allowed here.' ) raise Http404 ( ( "'%s' could not be found" % path ) ) ( document_root , path ) = os . path . split ( absolute_path ) return static . serve ( request , path , document_root = document_root , ** kwargs )
start development web server .