16.5 Putting It All Together

The staticfiles app is similar to the template system. Like the template system, the staticfiles app organizes non-Python files external to Django according to app or project, namespacing the content. However, whereas the template system will load and use the template files being organized, the staticfiles app only refers to them, allowing the template system to point to these files while still adhering to DRY.

When we deploy, we will also discover that the system allows for the collection of all static files, which means that if we adhere to the proper organization, we will be able to very quickly reorganize all of our content for public consumption. Even better, however, is that the use of staticfiles, in combination ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.