Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/a/t/atmosphere-HEAD/web/views.py   atmosphere(Download)
from atmosphere import settings
 
from authentication import cas_loginRedirect, cas_logoutRedirect
from authentication.models import Token as AuthToken
from authentication.decorators import atmo_login_required, atmo_valid_token_required
def logout(request):
    django_logout(request)
    if request.POST.get('cas',False):
        return cas_logoutRedirect()
    return HttpResponseRedirect(settings.REDIRECT_URL+'/login')