It seems you have specified an app_name in your post/urls.py : *app_name='post'*
Have you different name='home' in your apps then you have to use the app_name to make it unique !! Op dinsdag 14 juli 2020 22:08:22 UTC+2 schreef strang: > > 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/0e29b215-fa55-42fc-9fc6-0e9d9c2c4089o%40googlegroups.com.