• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Django deployment

Django deployment

Installing in production doesn't need to be hard

  • Home
  • Blog
  • About

How Django static files work in production

2016-11-21

If you have trouble understanding STATIC_ROOT, STATIC_URL, collectstatic, and the web server’s configuration, it’s because some things are better said with pictures than with text. Here are the pictures. If you want them in PDF format, you can get them at the end of the post. Media files work similar, except that there is no collectstatic; Django saves them directly in MEDIA_ROOT and the web server serves them from there.

how-django-static-files-work-nginx

how-django-static-files-work-apache

Previous Post: « Why nginx is faster than Apache, and why you needn’t necessarily care
Next Post: How to setup Apache with Gunicorn »

Primary Sidebar

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in