python - logout and login with different twitter account using ( Django + Allauth ) -


i using allauth login twitter in django app. have problem logout existing account login different one.

i make logout in function logout in views.py
, within tried call:

from django.contrib import auth  auth.logout(request) 

but didn't work.

i tried expire session using this:

request.session.set_expiry(1)    

to expire session after 1 second, didn't work.

by way use own signup , login (i save mail , password)

so ideas?

all auth takes care of it, jut build url to: /accounts/logout/

no need write own view. if want know override view.


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -