Skip to content

Commit

Permalink
Add default STORAGES const / 4
Browse files Browse the repository at this point in the history
  • Loading branch information
niccolomineo committed Jan 9, 2024
1 parent e7e4ca7 commit 24ec4d8
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,14 @@ class Testing(ProjectDefault):
# Storages
# https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-STORAGES

@property
def STORAGES(self): # pragma: no cover
"""Return the storage settings."""
storages = deepcopy(ProjectDefault.STORAGES)
storages["default"]["BACKEND"] = "django.core.files.storage.InMemoryStorage"
return storages
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.InMemoryStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}

# The MD5 based password hasher is much less secure but faster
# https://docs.djangoproject.com/en/stable/topics/auth/passwords/
Expand Down

0 comments on commit 24ec4d8

Please sign in to comment.