Skip to content

Commit

Permalink
fix: fix the test settings for Django 5.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
d9pouces committed Jan 19, 2025
1 parent bf3f595 commit 9b438ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ def local_path(path):
MEDIA_ROOT = local_path("media")

STATICFILES_STORAGE = "pipeline.storage.PipelineStorage"
STORAGES = {
"default": {
"BACKEND": "pipeline.storage.PipelineStorage",
},
"staticfiles": {
"BACKEND": "pipeline.storage.PipelineStorage",
},
}
STATIC_ROOT = local_path("static/")
STATIC_URL = "/static/"
STATICFILES_DIRS = (("pipeline", local_path("assets/")),)
Expand Down

0 comments on commit 9b438ae

Please sign in to comment.