Django Deployment
Published in

Django Deployment

How Django static files work in production

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.

This is a republication of an old article first published in my Django Deployment site.

--

--

--

A collection of posts with practical information on usual Django deployment issues

Recommended from Medium

Terraform Workspaces with AWS Elastic Kubernetes Service

LoginRadius Launches M2M Authorization for Seamless Business Operations

Faster Pagination in Mysql — You Are Probably Doing It Wrong

#Applications #WorkSpace #Private #Citrix #Wrike #VMware #Oracle

Senior Project: A Personal Narrative

How We Built Myntra Website Clone in just 5 days?

5 Ways to Grow your Discord Server

monitor AlwaysOn ReadRequest diversion

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Antonis Christofides

Antonis Christofides

I help scientists and engineers bring their models to the web

More from Medium

Celery: Django Admin Action to Manually Retry Tasks

Django Admin Interface with Retry Action (uses Django-celery-results)

Deploy Django App with NGINX, Gunicorn, and Supervisor on Ubuntu Server

Setting up a simple CI/CD with Django and Gitlab

Test-Driven-Development with Django: Unit Testing & Integration testing with Docker, Flask & Github…

Django Github CI/CD