added default storages

This commit is contained in:
Manan Bhavsar 2023-07-16 01:12:23 -04:00
parent c15e6d7412
commit 92d27631e4

View File

@ -183,6 +183,16 @@ MEDIA_ROOT = str(APPS_DIR / "media")
# https://docs.djangoproject.com/en/dev/ref/settings/#media-url
MEDIA_URL = "/media/"
# DEFAULT STORAGES
# ------------------------------------------------------------------------------
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}
# TEMPLATES
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#templates