Web Development with Django 6 - Third Edition
by Chris Guest, Mark Walker, Ben Shaw, Saurabh Badhwar, Bharath Chandra K S
5
Serving Static Files
A web application with just plain HyperText Markup Language (HTML) is quite limiting. However, we can enhance the look of web pages with Cascading Style Sheets (CSS) and images, and add interaction with JavaScript. We call all these kinds of files "static files," which are developed and then deployed as part of the application. We can compare this to dynamic responses, which are generated in real time when a request is made. All the views you have written generate a dynamic response by rendering a template.
We will not consider templates to be static files as they are not sent verbatim to a client; instead, they are rendered first and sent as part of a dynamic response.
During development, the static files are created ...
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