Thanks for your advice and all responses, that works well. Kind regards.
On Monday, November 25, 2013 12:14:23 AM UTC+11, Vibhu Rishi wrote: > > Its the @login_required decorator. > https://docs.djangoproject.com/en/1.2/topics/auth/#the-login-required-decorator<https://www.google.com/url?q=https%3A%2F%2Fdocs.djangoproject.com%2Fen%2F1.2%2Ftopics%2Fauth%2F%23the-login-required-decorator&sa=D&sntz=1&usg=AFQjCNFRZD_B7oBujkY8KFhM85TEP3hFGw> > > V. > > > On Sun, Nov 24, 2013 at 3:46 PM, Timothy W. Cook <[email protected]<javascript:> > > wrote: > >> Check in the docs for the instructions on decorating your views to >> restrict to authenticated users. This also talks about redirecting to >> a page instructing them to login. Sorry, I don't have the link >> available right now. >> >> >> On Sat, Nov 23, 2013 at 10:40 PM, nobody <[email protected]<javascript:>> >> wrote: >> > Hi, >> > >> > I made an URL link in an email, if I have logged into the web site, >> then I >> > can click the link, it would bring to a valid web page. But if I haven't >> > logged log in, to click the link would result an error "page not >> found". How >> > can I fix it to check if a user has not logged in, it opens a log page >> to >> > ask the user to log in rather than an error page, after the user loges >> in, >> > it would redirect to the link URL page? >> > >> > Thank you. >> > >> > Kind regards. >> > >> > >> > >> > >> > >> > -- >> > 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] <javascript:>. >> > To post to this group, send email to >> > [email protected]<javascript:> >> . >> > 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/ff130970-c4d4-4a96-8748-d386217b9cf5%40googlegroups.com >> . >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> MLHIM VIP Signup: http://goo.gl/22B0U >> ============================================ >> Timothy Cook, MSc +55 21 94711995 >> MLHIM >> http://www.mlhim.org<http://www.google.com/url?q=http%3A%2F%2Fwww.mlhim.org&sa=D&sntz=1&usg=AFQjCNGzcB7yP765YAzWovex982OoTB_bw> >> Like Us on FB: >> https://www.facebook.com/mlhim2<https://www.google.com/url?q=https%3A%2F%2Fwww.facebook.com%2Fmlhim2&sa=D&sntz=1&usg=AFQjCNHfz86nYY9o57MAmIvQbS0yKeE6gQ> >> Circle us on G+: http://goo.gl/44EV5 >> Google Scholar: http://goo.gl/MMZ1o >> LinkedIn >> Profile:http://www.linkedin.com/in/timothywaynecook<http://www.google.com/url?q=http%3A%2F%2Fwww.linkedin.com%2Fin%2Ftimothywaynecook&sa=D&sntz=1&usg=AFQjCNGFhQhgZWtJqQ_hj3n9-7J_9qiH7w> >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> 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/CA%2B%3DOU3WJCAEwgGzvgnH1bH%3DpxtQ%3DWEGO%3DZcJHaWKXz%2BT2863Tw%40mail.gmail.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Simplicity is the ultimate sophistication. - Leonardo da Vinci > Life is really simple, but we insist on making it complicated. - Confucius > -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8e4fe6be-292a-49bd-9835-093dc8330e4d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

