Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get absolute url django

from django.urls import reverse

def get_absolute_url(self):
        return reverse("show_article", kwargs={"slug": self.slug})
 
PREVIOUS NEXT
Tagged: #absolute #url #django
ADD COMMENT
Topic
Name
8+8 =