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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -