Open Devinwon opened 6 years ago
def logout(request): context={} try: response=redirect(to='/account/login') #delete cookie response.delete_cookie('username') return response except: return render(request,'index.html',context)