def themes(request): context = { 'currTheme' : C.getTheme(), 'configList' : C.getThemesConfig() } return render(request, manageThemeDir + 'themes.html', context)
def themes(request): if C.checkLoginAdmin(request.session.get('uInfo', False)) == False: return HttpResponseRedirect('/signin/') else: context = { 'currTheme' : C.getTheme(), 'configList' : C.getThemesConfig() } return render(request, manageThemeDir + 'themes.html', context)