I'm trying to write a function to check whether user logged or not. If logged, 
return user's name,if not, redirect to the login page. I want to write it as a 
shortcut function like "get_object_or_404". My question is, how to let django 
return an response to web browser at anywhere I like, not just at the end of a 
function in views.py.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2e4c9ed1-fa01-4636-a271-a17ff2acc202%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to