Don't ask me but it works

I have no idea  what happened 

auth.settings.login_url = URL('school','index?school=' + database)
    auth.settings.login_next = URL('school','index?school=' + database)
    auth.settings.logout_next =  URL('school','index', 
vars=dict(school=database))

I tried this before it didn't work now it works. beats me

On Friday, September 21, 2012 1:45:08 PM UTC+2, Yebach wrote:
>
> Hello
>
> I put my working web2py app to production on linux server
>
> Everything works except the login_next redirection
>
> This is my code on my cmp
>
> auth.settings.login_url=URL('school','index?school=' + database)
> auth.settings.logout_next =  URL('school','index', 
> vars=dict(school=database))
>
> and it works like a charm
>
> but on server I even added login_next
> auth.settings.login_next =  URL('school','index', 
> vars=dict(school=database))
> but it is redirected me to 
> /iurnik/user/index <http://portal.iurnik.si/iurnik/user/index> where I 
> get invalid function error (ofcourse it doesn't exist)
>
> Any suggestions?
>
> Thank you
>

-- 



Reply via email to