This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
Pass arbitrary WhiteNoise configuration attributes #180
Labels
easy picker
Good for newcomers
enhancement
New feature or improvement of an existing one
third-party
Related to a third-party repo or project
Milestone
Is your feature request related to a problem? Please describe.
Static files are served with WhiteNoise (see
staticfiles.py
). This library has a few configuration attributes, but there's no way to pass them down the WhiteNoise constructor: we're stuck with the default configuration.Describe the solution you'd like
Allow to pass WhiteNoise configuration attributes when instanciating an app:
Describe alternatives you've considered
/
Implementation ideas
**kwargs
to thestatic
(staticfiles.py
) and pass them to theWhiteNoise
constructor.whitenoise_config
kwarg toApp
constructor, defaulting to an empty dict, and pass it tostatic
.Additional context
Uncovered by #179
The text was updated successfully, but these errors were encountered: