How to serve static files in production for Django 1.3 How to serve static files in production for Django 1.3 apache apache

How to serve static files in production for Django 1.3


. 4. Point Apache at your static folder.


As explained in Django's documentation, Django serves static files itself in development only, when deploying your application in production, it's up to you to make your web server (apache, lighttpd, nginx, whatever) serve the static files.

Django's documentation provides instructions for doing so with Apache here


Django while it's not in debug mode should not serve static files, for performances reasons, you should use:

./manage.py collectstatic

then configure your web server (apache or nginx) to serve this folder to the right url.