The one major use is that this function helps you avoid situations where 
you have to hardcode a URL in your templates. Instead, you use something 
like {{<model_name>.get_absolute_url}} and even if you change the path in 
some way at some later point of time, it won't matter. It's basically a 
really good practice to use this function to define your URL.
Check out this link from Stack : 
*https://stackoverflow.com/questions/43179875/when-to-use-django-get-absolute-url-method*

On Sunday, 17 March 2019 20:07:27 UTC+5:30, arpan godiyal wrote:
>
> Can someone help me with how to use get_absolute_url method in django 
> 2.1.7.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7c18e8ad-cb6a-49b6-8ab8-c2a3fcb5184a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to