Django Authentication Layer

19 views
Skip to first unread message

Satya Dev

unread,
Mar 17, 2015, 6:53:50 AM3/17/15
to django...@googlegroups.com
Hi , I have been working on Django for a few days and have been trying to implement a login page for the website similar to the login page of the admin interface.
 
I have created an auth.html which asks for a username and password and have given the necessary links in views.py and urls.py
 
I get the login page when I go to my RootURL but when I login , it just displays a blank page. I have set the form action in auth.html to RootURL/ABC but instead of loading RootURL/ABC, it loads a blank page.
 
I need the user to enter credentials if he wants to access the website , is there any other easy way to do this where I could configure the website to ask for credentials when I want to access it.
 
I also looked at https://docs.djangoproject.com/en/1.7/topics/auth/default/ and the login_required functionality but I am unable to implement this. What am I missing ?
 
Thanks!
Reply all
Reply to author
Forward
0 new messages