mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +01:00
Fix django 4.2 deprecations
This commit is contained in:
parent
42b9212b32
commit
14aa11cbf8
2 changed files with 12 additions and 2 deletions
|
@ -168,7 +168,12 @@ APP_DATA = env("APP_DATA")
|
||||||
|
|
||||||
STATIC_URL = "/static/"
|
STATIC_URL = "/static/"
|
||||||
STATIC_ROOT = env("STATIC_ROOT")
|
STATIC_ROOT = env("STATIC_ROOT")
|
||||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
STORAGES = {
|
||||||
|
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},
|
||||||
|
"staticfiles": {
|
||||||
|
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
# Medias
|
# Medias
|
||||||
MEDIA_URL = "/media/"
|
MEDIA_URL = "/media/"
|
||||||
|
|
|
@ -10,7 +10,12 @@ def _collectstatic():
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def live_server(settings, live_server):
|
def live_server(settings, live_server):
|
||||||
settings.STATICFILES_STORAGE = "whitenoise.storage.CompressedStaticFilesStorage"
|
settings.STORAGES = {
|
||||||
|
"default": {"BACKEND": "django.core.files.storage.FileSystemStorage"},
|
||||||
|
"staticfiles": {
|
||||||
|
"BACKEND": "whitenoise.storage.CompressedStaticFilesStorage",
|
||||||
|
},
|
||||||
|
}
|
||||||
return live_server
|
return live_server
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue