In models

auth.settings.allow_basic_login = True



On Wednesday, 14 January 2015 10:46:38 UTC-6, Manuele wrote:
>
> Hi! 
> I need to ask for a page of my application from a simple python script 
> using requests (or urllib2 or whatelse) but the requested page requires 
> authentication. 
> I tryed something like the following code but I always get the 
> authentication page instead of my page. 
>
> r = requests.get('http://localhost:8000/myapp/test/remote_login.json', 
> auth=('login', 'password')) 
>
> Can somebody help me ti find the correct way to perform this task? 
>
> Thanks a lot 
>
>     Manuele 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to