Created
November 6, 2016 14:24
-
-
Save mbmohib/3c95007bb0075f0d2dc8731f95e42d29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Three methods of getting object's url: | |
<a href='/posts/{{ post.id }}'><p>{{ post.title }}</p></a> (#static) | |
<a href='{% url 'detail' id=post.id %}'><p>{{ post.title|title }}</p></a> | |
<a href='{{ post.get_absolute_url }}'><p>{{ post.title|title }}</p></a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment