Skip to content

Commit

Permalink
Merge pull request #199 from timgraham/FILE_CHARSET
Browse files Browse the repository at this point in the history
Remove usage of Django's FILE_CHARSET setting
  • Loading branch information
evansd committed Nov 19, 2018
2 parents d722b12 + 5d8dc85 commit d220ae2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/django.rst
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ arguments upper-cased with a 'WHITENOISE\_' prefix.

.. attribute:: WHITENOISE_CHARSET

:default: ``settings.FILE_CHARSET`` (utf-8)
:default: ``'utf-8'``

Charset to add as part of the ``Content-Type`` header for all files whose
mimetype allows a charset.
Expand Down
1 change: 0 additions & 1 deletion whitenoise/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def serve(static_file, request):

def configure_from_settings(self, settings):
# Default configuration
self.charset = settings.FILE_CHARSET
self.autorefresh = settings.DEBUG
self.use_finders = settings.DEBUG
self.static_prefix = urlparse(settings.STATIC_URL or '').path
Expand Down

0 comments on commit d220ae2

Please sign in to comment.