added celery and tasks but most important added tag_list

This commit is contained in:
Esther Kleinhenz
2018-10-22 18:58:10 +02:00
parent 3c7005afaf
commit f5980566ae
635 changed files with 117534 additions and 1732 deletions
+18 -17
View File
@@ -1,23 +1,24 @@
{% extends "base.html" %} {% block content %} {% load taggit_templatetags2_tags %}
{% extends "base.html" %} {% block content %}
<div id="">
Your tags:
<ul>
{% for tag in users %}
<li>
</li>
{% endfor %}
</ul>
<div>
</div>
<div>
{{ u }} {{ arr }}
</div>
<div>
from List: {% for tag in tags %}
{% for tag in posts %}
<p>{{ tag.name }} </p>{% endfor %}{% endfor %}
{% for post in posts %}
<div class="post">
<div class="date">
{{ post.published_date }}
</div>
<h1>
<a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
</h1>
<p>{{ post.text|linebreaks }}</p>
Tags: {% for tag in post.tags.all %}
<a href="{% url 'post_list_by_tag' tag.slug %}">{{ tag.name }}</a>
{% if not forloop.last %}, {% endif %} {% endfor %} <p>
{{ post.author }}
</p>
</div>
{% endfor %}
</div>
{% endblock %}