-
Hi, I have a django project and previously I was using uWSGI and nginx, I was serving static files directly with nginx. However, I wanted a single container for my project so I tried to migrate to this. After setting it up with Django, everything seems to be working fine, except static files like css, js and images not loading. Do I need something like nginx to serve them as I did previously with this project as well? From the docker logs I can see: And if I enable debug mode, I get the standard Django error page saying:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! The uWSGI image with Nginx has some logic to make Nginx serve the static files directly. But this image is only Meinheld with Gunicorn serving your app. There's nothing handling your static assets, you would have to configure it in Django. I'm not sure what would be the right configuration for you, I guess it depends on your own code. |
Beta Was this translation helpful? Give feedback.
Hey! The uWSGI image with Nginx has some logic to make Nginx serve the static files directly. But this image is only Meinheld with Gunicorn serving your app. There's nothing handling your static assets, you would have to configure it in Django. I'm not sure what would be the right configuration for you, I guess it depends on your own code.