This commit is contained in:
Andros Fenollosa
2021-06-22 15:43:26 +02:00
parent 3ce1665ca0
commit a901b8d54a
26 changed files with 368 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %} | Djanker News</title>
</head>
<body>
<header>
<ul>
<li>
<a href="{% url 'list' %}">List</a>
</li>
<li>
<a href="{% url 'add-news' %}">Add News</a>
</li>
</ul>
</header>
<main>
<h1>Djanker News</h1>
{% block main %}{% endblock %}
</main>
<footer>
2021 Djanker News
</footer>
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

View File

@ -0,0 +1,12 @@
{% extends 'layouts/base.html' %}
{% block title %}Welcome{% endblock %}
{% block main %}
{% for item in news %}
<article>
<h2>{{ item.title }}</h2>
<p>
<a href="{{ item.url }}">Ver completo</a>
</p>
</article>
{% endfor %}
{% endblock %}