ich bin grad dabei Django zu lernen, aber ich habe momentan ein Problem, nämlich, dass die CSS-Datei nicht berücksichtigt wird:
hier mal die beiden HTML-Dateien (bis jetzt nur grobe entwürfe):
base.htm
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>[...]<link rel="stylesheet" type="text/css" href="base.css"></head>
<body>
<div class="head"><h1>Juggleclips</h1></div>
<div class="menu">{% block menu %} menu {% endblock %}div>
<div><div class="navi">
{% block navi %} navi {% endblock %}
</div>
<div class="main">
<h2>{{ title }}</h2>
{% block main %} main {% endblock %}
</div></div>
</body></html>
Code: Alles auswählen
{% extends "base.htm" %}
{% block navi %}
<a href="">link</a>
{% endblock %}
{% block main %}
{{ content }}
{% endblock %}
Code: Alles auswählen
body { margin:0px; }
div.head { overflow:hidden; border:1px solid red; margin:0px; padding:5px; }
div.menu { border:1px solid blue; margin:0px; padding:5px; }
div.navi { width:100px; float:left; overflow:hidden; border:1px solid red; margin:0px; padding:5px; }
div.main { position:absolute; left:112px; border:1px solid red; margin:0px; padding:5px; }