difference of relative and absolute url code example
Example: absolute url
from django.urls import reverse
def get_absolute_url(self):
return reverse('author-detail', kwargs={'pk': self.pk})
from django.urls import reverse
def get_absolute_url(self):
return reverse('author-detail', kwargs={'pk': self.pk})