NoReverseMatch at /catalog/author/1

48 views
Skip to first unread message

victor jack

unread,
Oct 6, 2018, 1:36:08 AM10/6/18
to Django users
Hello guys, i am in dire need of any django user's knowledge, i have this issue that has been bugging me literally in my codebase. I want to render a html page but the error keeps on coming, i have tried but to no avail, 

['catalog\\/author/(?P<pk>\\d+)$'] - this regex keeps throwing me off

 please guys i need your assistance. Attached are the screenshots . Thanks
error1.PNG
error2.PNG
urls.PNG
views.PNG
error1.PNG

Manjunath

unread,
Oct 6, 2018, 6:25:50 AM10/6/18
to Django users
Seems like you are not passing the argument along with the url.
Please share your template file to verify.

victor jack

unread,
Oct 8, 2018, 7:22:28 PM10/8/18
to Django users

Thanks Manjunath, i will post two screen shots of the templates 
adetail.PNG
bdetail.PNG

Manjunath

unread,
Oct 9, 2018, 5:16:27 AM10/9/18
to Django users
Hi Victor,
Are you sure book.author.pk has value?
can you send the model definition of Book & Author to verify?
Or you can verify yourself by using django Shell.

victor jack

unread,
Oct 9, 2018, 5:21:13 AM10/9/18
to django...@googlegroups.com
Will check it out . Thanks for your input very much appreciated

--
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/a619bb69-b9be-481b-8731-51f9b920c817%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pradeep Singh

unread,
Oct 9, 2018, 5:23:07 AM10/9/18
to django...@googlegroups.com
please help me ...i am always getting django 404 error .how to fix it....

--
Screenshot (20).png
Screenshot (21).png
Screenshot (22).png

Pradeep Singh

unread,
Oct 9, 2018, 5:23:33 AM10/9/18
to django...@googlegroups.com
what is wrong with my...code...and setting please tell me

Pradeep Singh

unread,
Oct 9, 2018, 5:24:17 AM10/9/18
to django...@googlegroups.com
i am using python 3.7+django 2.0

Manjunath

unread,
Oct 9, 2018, 5:27:13 AM10/9/18
to Django users
Please Send the screenshot of your 404 page.

victor jack

unread,
Oct 9, 2018, 5:30:20 AM10/9/18
to django...@googlegroups.com
screenshot of the error message Singh will be helpful

Pradeep Singh

unread,
Oct 9, 2018, 5:40:55 AM10/9/18
to django...@googlegroups.com
Screenshot (23).png

Pradeep Singh

unread,
Oct 9, 2018, 5:43:00 AM10/9/18
to django...@googlegroups.com
please.. help guys..

victor jack

unread,
Oct 9, 2018, 5:43:41 AM10/9/18
to django...@googlegroups.com
Your application'software URL  is not mapped correctly , from the error page it is only the admin that can be loaded .

Pradeep Singh

unread,
Oct 9, 2018, 5:52:07 AM10/9/18
to django...@googlegroups.com
how to correct it give me step by step instruction

Pradeep Singh

unread,
Oct 9, 2018, 5:52:51 AM10/9/18
to django...@googlegroups.com
tell me how to map correctly

Manjunath

unread,
Oct 9, 2018, 8:39:14 AM10/9/18
to Django users
Change the line
path('date/', views.timeinfo)
to 
path('date/', view=views.timeinfo)

Check if it is working.

Manjunath

unread,
Oct 9, 2018, 8:40:11 AM10/9/18
to Django users
No issues.
So, is the issue resolved now?

victor jack

unread,
Oct 9, 2018, 6:37:24 PM10/9/18
to django...@googlegroups.com

Manjunath thanks i have fixed the bug in my code , the problem was in the author_detail page. THanks so much for your time , i really appreciate your help

Manjunath

unread,
Oct 10, 2018, 6:26:11 AM10/10/18
to Django users
No issues..
Glad I was of some help. :)

Pradeep Singh

unread,
Oct 11, 2018, 7:34:55 PM10/11/18
to django...@googlegroups.com
no. mam still i am getting django404 error

On Wed, 10 Oct 2018 at 12:04, Manjunath <dmanju....@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (dmanju....@gmail.com) Add cleanup rule | More info
No issues..
Glad I was of some help. :)

Reply all
Reply to author
Forward
0 new messages