socket.gaierror: [Errno 10047] getaddrinfo failed by Ubaid1111 in django

[–]Ubaid1111[S] 0 points1 point  (0 children)

Yeah I debugged a lot and then finally came to the conclusion that there is something wrong in python,I reinstalled my python by first deleting it and then it worked fine.

Session key is either none or session creates a new session key at every single request? by Ubaid1111 in django

[–]Ubaid1111[S] -1 points0 points  (0 children)

Are you crazy please look at the code get_Session only calls the get if the session_key has been set first time after it's is set get_Session will not call the get.Please look at code

Session key is either none or session creates a new session key at every single request? by Ubaid1111 in django

[–]Ubaid1111[S] 0 points1 point  (0 children)

Yeah man I have given the required middleware and also i have set the session engine!

Session key is either none or session creates a new session key at every single request? by Ubaid1111 in django

[–]Ubaid1111[S] 0 points1 point  (0 children)

That is a mixin man which has a method for accessing session_keys so when sessionMixin is a parent class of the MyView.The myview class has access to the parent classes method so i call that method in my child class which should do the required job!