Skip to content

Commit

Permalink
chore: add whitenoise to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew4Coding committed Oct 10, 2024
1 parent 0d38bf6 commit 65fd71b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eventyog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'main',
'whitenoise.runserver_nostatic'
]

MIDDLEWARE = [
Expand Down Expand Up @@ -130,4 +131,6 @@
BASE_DIR / 'static' # merujuk ke /static root project pada mode development
]
else:
STATIC_ROOT = BASE_DIR / 'static'
STATIC_ROOT = BASE_DIR / 'static'

STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"

0 comments on commit 65fd71b

Please sign in to comment.