NoReverseMatch at /blog/

87 views
Skip to first unread message

Mohamed Awad

unread,
Oct 15, 2018, 1:57:44 PM10/15/18
to django...@googlegroups.com
hi I have work on blog project but when I try to go to post_list url
django go to the post_detail ulr and give me this error and I don`t know why
there are 3 image for app url , config url and error
and this is link on github

mottaz hejaze

unread,
Oct 15, 2018, 2:30:22 PM10/15/18
to django...@googlegroups.com
this is a template problem , not in url.py ..

please review your blog_detail link in your html template

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGGOgdg5mv3G%3D_ampy5OCT07ss0PsspbPRYO%3DY3Lqff8NtjR0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Gaurav Toshniwal

unread,
Oct 15, 2018, 6:27:19 PM10/15/18
to Django users
I think it's because the 4th parameter to the URL config is \w+, which means match one or more words, which is not the case while trying to construct the reverse URL, since the 4th parameter passed is an empty string.

Gaurav Malhotra

unread,
Nov 5, 2018, 1:02:27 PM11/5/18
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages