[Answered ]-NoReverseMatch error after updating form in Django

2👍

You have app_name = 'sites' in your app’s urls.py, so you should include the sites namespace when reversing the url:

def get_absolute_url(self):
    return reverse('sites:site-detail', kwargs={'pk':self.pk})

Leave a comment