示例#1
0
文件: views.py 项目: nzee/ms
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('/')
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)
示例#5
0
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)
示例#6
0
def logout(request, next_page):
    """
    Renders logout view by connecting to django.contrib.auth.views.
    """
    return _logout(request, next_page)
示例#7
0
def logout(request):
    return _logout(request, next_page=settings.LOGOUT_REDIRECT_URL, 
            template_name='logout.html')
示例#8
0
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")
示例#9
0
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)
示例#10
0
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)
示例#11
0
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)
示例#12
0
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")