diff --git a/eventyog/settings.py b/eventyog/settings.py index 17c450d..070fded 100644 --- a/eventyog/settings.py +++ b/eventyog/settings.py @@ -41,6 +41,7 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'main', + 'whitenoise.runserver_nostatic' ] MIDDLEWARE = [ @@ -130,4 +131,6 @@ BASE_DIR / 'static' # merujuk ke /static root project pada mode development ] else: - STATIC_ROOT = BASE_DIR / 'static' \ No newline at end of file + STATIC_ROOT = BASE_DIR / 'static' + +STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" \ No newline at end of file