def home(request): #import pdb; pdb.set_trace() if request.user.is_authenticated(): return feeds(request) else: return render(request, 'core/cover.html')
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')
def home(request): return feeds(request)
def home(request): if request.user.is_authenticated(): return feeds(request) else: return render(request, 'core/cover.html')