Here is the problem I am facing with the Django Authenetication
This worked for me. I was too stuck with this problem. Found the following solution on youtube.
My solution is a little modified though.
in views.py
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import redirect
def auth_logout(request):
logout(request)
return redirect('home')
in urls.py
url(r'^logout$', views.auth_logout, name='auth_logout'),