Mastering Django Static Files

Everything you need to get the most out of Django and your files

You’ve built your app and everything’s awesome. Now you’re about to deploy it. What do you do with your images, your CSS, your JavaScript? Where do you put them? How do you get it right?

I’ve worked with Django since before it handled static files. I run a consultancy where I’ve helped many clients get their static hosting configuration just right. Like you, they’ve built great things. But many of them were having problems at the very last hurdle, from getting their images uploaded to S3, to getting their web server to use the right caching headers.

There’s lots to learn, and if you’re like them, time is precious.

So I’m putting together a book with all the information you need to understand how Django handles static files, and how to use that to make your app awesome.

Learn about your hosting options and how to pick the right one

Whether it’s hosting them on your own server or using a third party service like Amazon S3, learn how to select the option that’s best for you. Use worked examples to get started right away.

Make sure you’re serving files in the best way possible

Learn how to use plugins to combine and compress your files for better performance. Discover how caching headers can let your users only download files when they change.

But you haven’t written it yet?

That’s true. What I have written are popular articles explaining how Django staticfiles works and how to host your static files using Amazon S3. These have already helped many people; the book will include many more things you’ll want to get right, from HTTP headers to CSS minification, with examples for many more common hosting configurations so you can ship quickly and easily.

Stay updated!

Sign up to receive updates on the book’s progress, advice on ways to make your app better, and sample chapters as they become available!

* indicates required

Who’s behind this?

Kristian Glass runs Moorhen Solutions Ltd., a consulting firm based in London. He’s the author of a leading article on using Django’s staticfiles app, and can often be found in #django on freenode.