I have read the discussions on this, for a long time
     - but am a bit lost.

I created a simple app called "init"
added a 
welcome page
and that works.

http://127.0.0.1:8000/init/default/welcome 
 displays a sample page.

I add this to my db.py
auth.navbar(referrer_actions=None)

# added tp default.py
in
def index():

auth.settings.login_next = URL('welcome')  

and hope that when a user logs in, they are directed to "welcome" page
but it doesn't work, they always get directed back to index page

I've tried all different combinations, nothing seems to work.

Any help would be appreciated.

Thanks
Rob


URL reads
http://127.0.0.1:8000/init/default/user/login?_next=/init/default/welcome

---
I did read this, and many other threads..

For those interested, in trunk, auth.navbar() now takes a referrer_actions 
argument. If you do:

auth.navbar(referrer_actions=None)

It will no longer add referrer URLs to the query strings of any of the 
navbar links, so any auth.settings.<action>_next settings will take 
precedence in that case. If you want referrer URLs for some but not all of 
the actions, you can add them to a list:

auth.navbar(referrer_actions=['login', 'profile'])

Note, by default, all links (except logout) still get referrer URLs in the 
query string, which is unchanged from the original behavior -- so if you 
want the original behavior, you don't have to do anything different (i.e., 
this is backward compatible).

Anthony


-- 



Reply via email to