Relative Content

Tag Archive for pythondjangodjango-views

KeyError at /verify/ ‘order_id’

I have a problem on my store site, when I want to confirm my order, when I click on confirmation on the payment page, it gives this error instead.

Incorrect Redirection to Login Page from Profile and Logout Links After User Login

Context:
I’m working on a Django project where I have implemented user authentication with profile and logout functionality. The issue I’m encountering is that when I try to access the profile or logout links from the navbar, it redirects me to the login page instead of navigating to the user’s profile or performing logout.

Displaying an image doesn’t work Django python

So this is my views.py when I use atrakcjatest my images work, but when I try to use the filtered atrakcja(atrakcje_list) it doesnt work and only images dont work, the rest of variables are ok

“User matching query does not exist” When tried to follow a user

I am building a small social media website using Django, When I Click on follow button, I get this error saying: “User matching query does not exist.” And showing the error here in the profile view function”user_object = User.objects.get(username=pk) this is the follow function in view.py file,