Built-in Views
Built-in Views
Several of Django’s built-in views are documented in Writing views as well as elsewhere in the documentation.
Serving files in development
-
static.serve(request, path, document_root, show_indexes=False)
There may be files other than your project’s static assets that, for convenience, you’d like to have Django serve for you in local development. The serve()
view can be used to serve any directory you give it. (This view is not hardened for production use and should be used only as a development aid; you should