kopia lustrzana https://github.com/jointakahe/takahe
migrate to new staticfiles storage setting
rodzic
b6d9f1dc95
commit
cec8b3b797
|
@ -303,7 +303,11 @@ STATICFILES_FINDERS = [
|
|||
|
||||
STATICFILES_DIRS = [BASE_DIR / "static"]
|
||||
|
||||
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
|
||||
STORAGES = {
|
||||
"staticfiles": {
|
||||
"BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
|
||||
},
|
||||
}
|
||||
|
||||
SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
|
||||
|
||||
|
|
|
@ -58,9 +58,11 @@ kwIDAQAB
|
|||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _test_settings(settings):
|
||||
settings.STATICFILES_STORAGE = (
|
||||
"django.contrib.staticfiles.storage.StaticFilesStorage"
|
||||
)
|
||||
settings.STORAGES = {
|
||||
"staticfiles": {
|
||||
"BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
|
||||
},
|
||||
}
|
||||
settings.SETUP.MAIN_DOMAIN = "example.com"
|
||||
settings.MAIN_DOMAIN = "example.com"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue