Skip to content

Commit

Permalink
white noise
Browse files Browse the repository at this point in the history
  • Loading branch information
DOodle25 committed Oct 30, 2024
1 parent 67e1e81 commit 320c6cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified DIDBackend/DIDBackend/__pycache__/settings.cpython-311.pyc
Binary file not shown.
10 changes: 9 additions & 1 deletion DIDBackend/DIDBackend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
"whitenoise.middleware.WhiteNoiseMiddleware",
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down Expand Up @@ -128,9 +129,16 @@

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'staticfiles'
STORAGES = {
"default": {
'Backend': 'django.core.files.storage.FileSystemStorage',
},
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
},
}

# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
Expand Down

0 comments on commit 320c6cf

Please sign in to comment.