Running a django project on localhost, and i have a go to profile button which sends a pk (the username) back to the profile view and currently i have some debugging code inside the view and i see it runs twice. First it prints the correct pk of whatever profile I clicked then it says pk :None and gives “GET /profile/None HTTP/1.1” 500
before error
Received pk: tim
[10/Jul/2024 21:15:52] “GET /profile/tim HTTP/1.1” 200 26400
before error
Received pk: None
Internal Server Error: /profile/None
I have no idea why its calling twice, the weird thing is the site is still working, it correctly goes to the correct profile but just throws error in terminal. Thanks!
Shue is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.