Skip to content
Justice Tech School

Static Files

CSS, JavaScript and images are static files. Keep them in app/static/app/, load the static tag and set STATIC_URL.

Example
{% load static %}
<link rel="stylesheet" href="{% static 'blog/style.css' %}">
<img src="{% static 'blog/logo.png' %}">

# settings.py
STATIC_URL = "static/"

Exercise

Load the helper.

{% load  %}

Quiz Test

What does {% static %} produce?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.