My project has two superusers who have access to the Django Administration and who manually add about 15 Users who should then be able to login and use the site to do data entry.
I'm using the standard code in my views
def auth_view(request):
username = request.POST.get('username',' ')
password = request.POST.get('password',' ')
user = auth.authenticate(username=username, password=password)
if user is not None:
auth.login(request, user)
return HttpResponseRedirect('/accounts/loggedin')
else:
return HttpResponseRediredt('/accounts/invalid')
This should check against the users listed in the admin page?
However ther is no acknowledgement from the loggedin.hml template.
Does anything come to mind that I have newgelected to do to get the login to work.