python - get_absolute_url throws a no reverse match -


why not work?

in models class have

def get_absolute_url(self):     django.core.urlresolvers import reverse     return reverse ('core.views.landingview', args =[str(self.id)]) 

and in urls have:

urlpatterns = [     url(r'^admin/', include(admin.site.urls)),     url(r'^$', core.views.landingview.as_view(), name='index'), 

why throw

noreversematch @ / reverse 'visitors.views.landingview' arguments '('da697aca-4269-4700-b174-fe6d022ee3a1',)' , keyword arguments '{}' not found. 0 pattern(s) tried: []

i tried 'index' instead of 'core.views.landingview'.

i checked docs , other posts, it's name why?

thanks!


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -