diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/static-files.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt index 2787c1cac8..77e07141e3 100644 --- a/docs/howto/static-files.txt +++ b/docs/howto/static-files.txt @@ -297,6 +297,12 @@ development:: # ... the rest of your URLconf goes here ... ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +.. note:: + + The helper function will only be operational in debug mode and if + the given prefix is local (e.g. ``/static/``) and not a URL (e.g. + ``http://static.example.com/``). + .. _staticfiles-production: Serving static files in production |
