Re: Simulating REMOTE_USER login with the test server

2015-06-10 Thread Gergely Polonkai
That’s exactly what I was doing, just haven’t had the time yet to share my
experience :)

2015-06-10 11:55 GMT+02:00 'Tom Evans' via Django users <
django-users@googlegroups.com>:

> On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai 
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CACczBU%2Bu_h1d5F2qBYWfvHgB_Tgc2NoDNkcw1WPXs_ww0Y%3DXww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simulating REMOTE_USER login with the test server

2015-06-10 Thread 'Tom Evans' via Django users
On Tue, Jun 9, 2015 at 10:07 PM, Gergely Polonkai  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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.


Re: Simulating REMOTE_USER login with the test server

2015-06-09 Thread Mike Dewhirst

On 10/06/2015 7:07 AM, Gergely Polonkai 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?


You can also set up Apache locally as your dev server. I think the dev 
server is more convenient for automatic reloading after saving code 
changes but you can restart Apache easily enough to live with a little 
inconvenience during development of that part of your project.


Mike



Best,
Gergely

--
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 django-users+unsubscr...@googlegroups.com
.
To post to this group, send email to django-users@googlegroups.com
.
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/CACczBU%2BX%2BHESqWb7P17LdmBB%2BysMZFo42ab_AsoerMBELp1_OQ%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.


--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/55776B34.5010702%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Simulating REMOTE_USER login with the test server

2015-06-09 Thread Gergely Polonkai
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

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/CACczBU%2BX%2BHESqWb7P17LdmBB%2BysMZFo42ab_AsoerMBELp1_OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.