Changes between Initial Version and Version 1 of Ticket #27325, comment 5


Ignore:
Timestamp:
Mar 29, 2017, 9:02:02 AM (8 years ago)
Author:
Aleksej Manaev

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 collectstaic first. Is this an important behavior?
     1If 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?
    22
    33tests/staticfiles_tests/test_liverserver.StaticLiveServerView.test_collectstatic_emulation only passes with DEBUG=True.
     
    55WHITENOISE_USE_FINDERS=True causes:
    66"django.core.exceptions.ImproperlyConfigured: WHITENOISE_USE_FINDERS can only be enabled in development when WHITENOISE_AUTOREFRESH is also enabled."
     7
     8EDIT:
     9Now 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
     10Does anybody know why WHITENOISE_USE_FINDERS is ignored in WhiteNoiseMiddle?
     11See: tests/staticfiles_tests/test_liverserver.TestWhitenoiseMiddleware.test_collectstatic_emulation
Back to Top