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:
-- Kind regards.
On Monday, November 25, 2013 12:14:23 AM UTC+11, Vibhu Rishi wrote:
Its the @login_required decorator. https://docs.djangoproject.V.com/en/1.2/topics/auth/#the- login-required-decorator
On Sun, Nov 24, 2013 at 3:46 PM, Timothy W. Cook <t...@mlhim.org> 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 <jupit...@gmail.com> 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 django-users...@googlegroups.com .
> To post to this group, send email to django...@googlegroups.com.
> 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
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
To view this discussion on the web visit https://groups.google.com/d/
--
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 django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
No comments:
Post a Comment