Closed geasyheart closed 6 years ago
What was the question here?
Thanks for your reply! Maybe i didn't make it clear, without nginx,just use django with whitenoise can serving static files well,But the static files cannot find when use nginx reverse proxy django , So i dont understand what's going wrong or that i was wrong.
It sounds like there's a problem with your ngnix configuration rather than an issue with WhiteNoise. You might be better off asking for help on stackoverflow.com
Maybe Django cannot serving static files when debug=False, So i use whitenoise to serving django-rest-framework static files,without nginx evenything work well, but with nginx all static file through nginx,here is my settings:
STATIC_HOST = os.environ.get('ROOT_SERVER_STATIC_HOST', '') STATIC_URL = STATIC_HOST + '/backend_static/'