Dapatkan URL Mutlak Django
from django.urls import reverse
def get_absolute_url(self):
return reverse("show_article", kwargs={"slug": self.slug})
Condemned Chamois
from django.urls import reverse
def get_absolute_url(self):
return reverse("show_article", kwargs={"slug": self.slug})
def get_absolute_url(self):
from django.core.urlresolvers import reverse
return reverse('', kwargs={'pk': self.pk})
from django.urls import reverse
def get_absolute_url(self):
return reverse('your:url', kwargs={'pk': self.pk})