relative ur;
## Relative URl
<a href = "/xyz.html">
##Absolute
<a href = http://www.example.com/xyz.html>
relative ur;
## Relative URl
<a href = "/xyz.html">
##Absolute
<a href = http://www.example.com/xyz.html>
absolute url
from django.urls import reverse
def get_absolute_url(self):
return reverse('author-detail', kwargs={'pk': self.pk})
get absolute url
from django.urls import reverse
def get_absolute_url(self):
return reverse('your:url', kwargs={'pk': self.pk})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us