Dominik Andrzejczuk
Dominik Andrzejczuk
``` def process_request(self, request): request.session = None request.user = None session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None) if session_key is not None: engine = import_module(settings.SESSION_ENGINE) request.session = engine.SessionStore(session_key) request.user = SimpleLazyObject(lambda: get_user(request)) ```...
I tried that already but got the following: ``` File "./ws4redis/wsgi_server.py", line 61, in request.user = SimpleLazyObject(lambda: get_user(request)) File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 167, in get_user user_id = _get_user_session_key(request) File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line...
So it looks like a Session ID is needed, I am only providing Token Auth.
Just for context, i'm making this call from an iOS device.
I have a work around @edwardotis but it involves some refactoring to the default TokenSerializer. When a user logs in/checks current user/updates details, i write the serialized user as such:...
I'm running into a similar issue i posted on SO. Please reference this article to see what i mean. http://stackoverflow.com/questions/30470448/nginx-uwsgi-websockets-502-bad-gateway-upstream-prematurely-closed-connection-wh
here's the entire post: I've been banging my head on this issue for days now and have finally reached a brick wall. I've been trying to get my stack to...
I don't know what i could be missing! Junior Devops guy needs some help pleease!
@RobertTian "server unix:/opt/django/django.sock; The point???" Are you asking what the point of this file is? It's referenced under `location /` in my config. I did this as per the documentation...