Reg: django.urls.exceptions.NoReverseMatch patterns

21 views
Skip to first unread message

Kishore Kumar Alajangi

unread,
May 8, 2020, 10:53:57 PM5/8/20
to django...@googlegroups.com
Hi,

In templates.html file  if i am defining url pattern like

"{ % url "app_name:app_name_function_name" %}.

I am getting the following error:

"django.urls.exceptions.NoReverseMatch patterns"

in urls.py

app name is : app_name

in views.py file

function name : function_name

if i give hyphen instead of underscore in function name like

"{ % url "app_name:app_name-function-name" %}

working fine without error

what could be the reason? Could someone make me to understand ?

Note: used viewsets to route multiple urls in urls file.
--

Thank you,

Sincerely,
Kishore Kumar,
Reply all
Reply to author
Forward
0 new messages