I just figured the solution is using @login_required decorator. Thanks
________________________________ From: Blaxton <[email protected]> To: "[email protected]" <[email protected]> Sent: Wednesday, July 25, 2012 10:42:31 PM Subject: Prevent direct access to some URLs Hi I have set up a login page, using "django.contrib.auth.views.login" and user's would be forwarded to their own web page after being authenticated, but they can access to their web page directly with placing the related uri. how can I prevent direct access to those page ? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

