Monday, December 9, 2019

RE: (School) Detail View Not Work

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.

 

Sent from Mail for Windows 10

 

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):
    context_object_name = 'school_detail'
    template_name = 'basic_app/school_detail.html'
    return render(request, template_name)

 

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

 

 

On Monday, 9 December, 2019, 7:14:53 pm IST, Parvez Khan Pathan <iamparvezkhan25@gmail.com> wrote:

 

 

 

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+unsubscribe@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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/500438733.11539590.1575915550442%40mail.yahoo.com.

 

No comments:

Post a Comment