Django view getting called twice (double get request) primary key gets set equal to None
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