

class SchoolDetailView(request): context_object_name = 'school_detail' template_name = 'basic_app/school_detail.html' return render(request, template_name) |
Thanks Dominick
Its work!
Thank you so much for your response and help as well.
Sent from Mail for Windows 10
Thanks for response Amitesh,
Surely keep in mind your advise…
I tried solution by Dominick and its work for me.
Again thanks for response sir.
From: 'Amitesh Sahay' via Django users
Sent: Monday, 09 December 2019 23:50
To: Django users
Subject: Re: (School) Detail View Not Work
try the below and see if that works, I havn't tried that though.
|
class SchoolDetailView(request): |
I don't think you need to declare the model in this class, as you are not getting any data from the database, you are simply rendering the html page.
Regards,
Amitesh
Not Look Like This : which is not possible to click[Link] at Fist School

Its could be look like this which means click on Fist School and Its Show Detail Of Schools

--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5811ef71-fb70-4215-a578-fc3550cccca2%40googlegroups.com.
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/500438733.11539590.1575915550442%40mail.yahoo.com.