#27325: Offer a solution for static file serving suitable for production use
------------------------------+------------------------------------------
Reporter: Tim Graham | Owner: Aleksej Manaev
Type: New feature | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------------
Comment (by Aleksej Manaev):
If we deprecate django.contrib.staticfiles.handlers.StaticFilesHandler and
replace it by DjangoWhiteNoise in
django.contrib.staticfiles.testing.StaticLiveServerTestCase it would not
be possible to run tests without using collectstaic first. Is this an
important behavior?
tests/staticfiles_tests/test_liverserver.StaticLiveServerView.test_collectstatic_emulation
only passes with DEBUG=True.
WHITENOISE_USE_FINDERS=True causes:
"django.core.exceptions.ImproperlyConfigured: WHITENOISE_USE_FINDERS can
only be enabled in development when WHITENOISE_AUTOREFRESH is also
enabled."
--
Ticket URL: <https://code.djangoproject.com/ticket/27325#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.6d8016f87a12ead67815df2ff10a470e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.