My detail View in Django, isn’t successfully displaying the content selected from the listviews. The following is my code. Models.py: urls.py: Views.py: Html list view: Html detail view: I hope my query made sense. I don’t receive any error on myside, its just not working as it should. Answer The object data is passed as object and post_model, not Post,
Tag: django-class-based-views
unable to show success page after completion of payment
i am using razorpay payment gateway web integration for my learning eccomerce project everyhing work fine payment can be done all i want is to store some information after payment done in my order model using test mode my views.py for checkout so what the error is after payment completion i want to show html page and change sttus in
How to filter and paginate in ListView Django
I have a problem when I want to paginate the filter that I create with django_filter, in my template it shows me the query set and filter but paginate does not work, I would like to know why this happens and if you could help me. I’ll insert snippets of my code so you can see. This is my views.py