Imagen de fondo HTML
Estoy usando django e intento agregar una imagen de fondo a mi base.html, aplicándola al resto del sitio, pero he tenido problemas.
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
{% load staticfiles %}
<head>
<title>{% block title %}Local 9{% endblock %}</title>
<style type="text/css">
body {
background-image: url('{{STATIC_URL}}img/background.jpg');
}
</style>
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
</body>
</html>
Tengo el archivo en la ubicación correcta. También estoy haciendo esto en mi home.html:
{% extends "base.html" %}
{% block content %}
<a>HI</a>
{% endblock %}
Estoy usando la configuración por defecto.py. Mi STATIC_URL = '/ static /' ... Estoy en una pérdida total. Cualquier pensamiento o sugerencia sería realmente útil.