Skip to content

Commit

Permalink
Added instructions for flag DJANGO_STATIC_USE_MANIFEST_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodpandey committed Jan 31, 2016
1 parent f0970d6 commit d3078dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.rst
Expand Up @@ -141,6 +141,17 @@ in ``DJANGO_STATIC_MEDIA_ROOTS``. The first match will be used.
There is also a setting ``DJANGO_STATIC_USE_SYMLINK`` that can be set to
``False`` to force django_static to copy files instead of symlinking them.

Advanced configuration with DJANGO_STATIC_USE_MANIFEST_FILE
-----------------------------------------------------------

If you enable, in your settings, a variable called
``DJANGO_STATIC_USE_MANIFEST_FILE`` you can save filenames to
manifest.json which is stored in the first match directory in
``DJANGO_STATIC_MEDIA_ROOTS``. This is for he usecase where we want to
manually upload css and javascript files to CDN. On production, where DEBUG=False,
django-static will pick the filenames from manifest.json file instead of
doing all the calculations.


Advanced configuration with DJANGO_STATIC_FILE_PROXY
----------------------------------------------------
Expand Down

0 comments on commit d3078dc

Please sign in to comment.