You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I have a Django application in which I'd like to serve my SPA, bootstrapped with Create React App. In production the application is served by daphne. (version 2.2.5)
I followed the guide provided and the SPA is served well but in Django Admin I noticed that the assets are not loading properly. Most noticeably, missing icons and fonts.
I did not experience any missing resources. All resources were properly loaded.
What I Did
Looked into what is served and I noticed that /static/admin/css/base.[hash].css was missing the icons
Did the installation process step-by-step and checked when this weird behaviour starts
Figured out that it has to do something with the STATICFILES_STORAGE because when I change it from 'spa.storage.SPAStaticFilesStorage' to'whitenoise.storage.CompressedManifestStaticFilesStorage' the admin assets were loaded
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I have a Django application in which I'd like to serve my SPA, bootstrapped with Create React App. In production the application is served by daphne. (version 2.2.5)
I followed the guide provided and the SPA is served well but in Django Admin I noticed that the assets are not loading properly. Most noticeably, missing icons and fonts.
I did not experience any missing resources. All resources were properly loaded.
What I Did
/static/admin/css/base.[hash].css
was missing the iconsSTATICFILES_STORAGE
because when I change it from'spa.storage.SPAStaticFilesStorage'
to'whitenoise.storage.CompressedManifestStaticFilesStorage'
the admin assets were loadedLet me know if I can help.
The text was updated successfully, but these errors were encountered: