Django Gunicorn not load static files

前端 未结 3 1710
野趣味
野趣味 2020-12-10 13:51

i\'m trying to deploy my django project with gunicorn and nginx, but i need some help. when i code gunicorn myproject.wsgi:application I manage to see my website in the loca

3条回答
  •  既然无缘
    2020-12-10 14:37

    Gunicorn is only responsible for serving the django aspect of your site.

    The static files need to be served by nginx. See: How exactly do I server static files with nginx and gunicorn for a Django app?. This should be configured in the nginx.conf file. If you post it here we can have a look at it.

提交回复
热议问题