Criando urls dinâmicas no Django URL Dispatcher, view e template
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<article class="post">
|
||||
<header>
|
||||
<h2 class="post__title">{{ post.title }}</h2>
|
||||
<h2 class="post__title">
|
||||
<a href="{% url 'blog:post' post.id %}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h2>
|
||||
</header>
|
||||
<div class="post__body">{{ post.body }}</div>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user