def logout(request, **kwargs): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.") ) kwargs['template_name'] = kwargs.pop('template_name', 'account/logout.html') from django.contrib.auth.views import logout as _logout _logout(request, **kwargs) return HttpResponseRedirect('/')
def logout(request, **kwargs): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.")) kwargs['template_name'] = kwargs.pop('template_name', 'account/logout.html') from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request, **kwargs): #messages.add_message(request, messages.SUCCESS, # ugettext("You have signed out.") #) kwargs['template_name'] = kwargs.pop('template_name', 'signup.html') from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request, **kwargs): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.") ) kwargs['template_name'] = kwargs.pop('template_name', 'account/logout.html') kwargs['next_page'] = app_settings.LOGOUT_REDIRECT_URL from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request, **kwargs): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.") ) #kwargs['template_name'] = kwargs.pop('template_name', 'account/logout.html') kwargs['template_name'] = kwargs.pop('template_name','auth_template/page/logout.html') from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request, next_page): """ Renders logout view by connecting to django.contrib.auth.views. """ return _logout(request, next_page)
def logout(request): return _logout(request, next_page=settings.LOGOUT_REDIRECT_URL, template_name='logout.html')
def logout(request): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.") ) from django.contrib.auth.views import logout as _logout return _logout(request, template_name="account/logout.html")
def logout(request, **kwargs): kwargs['template_name'] = kwargs.pop('template_name', 'account/logout.html') from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request, **kwargs): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.")) kwargs["template_name"] = kwargs.pop("template_name", "account/logout.html") from django.contrib.auth.views import logout as _logout return _logout(request, **kwargs)
def logout(request): messages.add_message(request, messages.SUCCESS, ugettext("You have signed out.")) from django.contrib.auth.views import logout as _logout return _logout(request, template_name="account/logout.html")