Exemple #1
0
def home(request):

    #import pdb; pdb.set_trace()
    if request.user.is_authenticated():
        return feeds(request)
    else:
        return render(request, 'core/cover.html')
Exemple #2
0
def home(request):
    if request.user.is_authenticated():
        stip_user = request.user
        request = set_language_setting(request, stip_user)
        return feeds(request)
    else:
        lang = 'en'
        request.session['_language'] = lang
        translation.activate(lang)
        return render(request, 'cover.html')
Exemple #3
0
def home(request):
    return feeds(request)
Exemple #4
0
def home(request):
    if request.user.is_authenticated():
        return feeds(request)
    else:
        return render(request, 'core/cover.html')
Exemple #5
0
def home(request):
    if request.user.is_authenticated():
        return feeds(request)
    else:
        return render(request, 'core/cover.html')