On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai <[email protected]> wrote:
> Hello,
>
> I’m about to use the test server with REMOTE_USER based logins. I already
> know how to set it up with my Apache based server, but I can see no way of
> doing the same with the dev server (manage.py runserver). I have tried
> setting the environment variable REMOTE_USER to a desired value, as I saw
> some env vars in request.META earlier, but it doesn’t seem to help. Does
> anybody know if this is possible, and if so, how?
>
> Best,
> Gergely
>

Write a piece of custom middleware that is only active with DEBUG=True
that sets the REMOTE_USER you desire.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFHbX1Lv6XyBuj6_Xy%3DGSC3g-tndH77Z9oD3QdPUNHk9PLqLqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to