How to make Django serve static files with Gunicorn?
问题 I want to run my django project under gunicorn on localhost. I installed and integrated gunicorn. When I run: python manage.py run_gunicorn It works but there are no any static files (css and js) I disabled debug and template_debug in settings.py (made them false), but it is still same. Am I missing something? I call statics like: {{ STATIC_URL }}css/etc.... 回答1: When in development mode and when you are using some other server for local development add this to your url.py from django.contrib