Python django.views.i18n 模块,set_language() 实例源码

我们从Python开源项目中,提取了以下16个代码示例,用于说明如何使用django.views.i18n.set_language()

项目:blog_django    作者:chnpmy    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:dream_blog    作者:fanlion    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:MxOnline    作者:myTeemo    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:djangoblog    作者:liuhuipy    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:sdining    作者:Lurance    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:xadmin-markdown-editor    作者:bluenknight    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:eduDjango    作者:yuzhou6    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:Django-IMOOC-Shop    作者:LBruse    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:StudyOnline    作者:yipwinghong    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:Django-shop    作者:poetries    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:MoocOnline    作者:My-captain    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:followme    作者:wzqnls    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:mxonline    作者:huwei86    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:Charlotte    作者:LiZoRN    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:imooc-django    作者:zaxlct    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)
项目:muxueonline    作者:124608760    | 项目源码 | 文件源码
def post(self, request, *args, **kwargs):
        if 'nav_menu' in request.session:
            del request.session['nav_menu']
        return set_language(request)