Changes between Initial Version and Version 1 of Ticket #27325, comment 5
- Timestamp:
- Mar 29, 2017, 9:02:02 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27325, comment 5
initial v1 1 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 collectsta ic first. Is this an important behavior?1 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 collectstatic first. Is this an important behavior? 2 2 3 3 tests/staticfiles_tests/test_liverserver.StaticLiveServerView.test_collectstatic_emulation only passes with DEBUG=True. … … 5 5 WHITENOISE_USE_FINDERS=True causes: 6 6 "django.core.exceptions.ImproperlyConfigured: WHITENOISE_USE_FINDERS can only be enabled in development when WHITENOISE_AUTOREFRESH is also enabled." 7 8 EDIT: 9 Now I do not get errors using WHITENOISE_USE_FINDERS=True which can be used in StaticLiveServerTestCase to achieve running tests without collectstatic first. See: tests/staticfiles_tests/test_liverserver.StaticLiveServerView.test_collectstatic_emulation 10 Does anybody know why WHITENOISE_USE_FINDERS is ignored in WhiteNoiseMiddle? 11 See: tests/staticfiles_tests/test_liverserver.TestWhitenoiseMiddleware.test_collectstatic_emulation