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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access