I understand what you are trying to explain.

I have used name=“home” for home view. I’m using urls.py for my app(main 
URLs.py to route me to my apps urls.py, app urls.py contains path(‘’, 
HomeView.as_view(), name=‘home’)

But when I try to reference this url in templates ({% url ‘home’%})I get 
NoReverseMatch error.

However if I use {% url ‘post:home’ %} it works

post is my app name

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21f80c94-2e63-4ce7-a2d6-8ef634565f9do%40googlegroups.com.

Reply via email to