Complete the code to load static files in a Django template.
{% [1] %}In Django templates, you must use {% load static %} to enable static file handling.
Complete the code to reference a static CSS file in a Django template.
<link rel="stylesheet" href="{% static '[1]' %}">
The static tag is used to get the URL of static files. Here, the CSS file is named styles.css.
Fix the error in the code to correctly load an image using Django static files.
<img src="{% static [1] %}" alt="Logo">
The path inside the static tag must be a string literal with quotes, like 'logo.png'.
Fill both blanks to create a dictionary comprehension that maps image names to their static URLs.
images = {name: {% static '[1]' %} for name in [2]The first blank uses an f-string to build the path dynamically. The second blank is a list of image names.
Fill all three blanks to create a template snippet that loads static, links a CSS file, and shows an image.
{% [1] %}
<link rel="stylesheet" href="{% static '[2]' %}">
<img src="{% static '[3]' %}" alt="Site Logo">You must load static files first, then use the correct paths for CSS and image files inside the static tag.