Exemple #1
0
def themes(request):
	context = {
		'currTheme'   : C.getTheme(),
		'configList'  : C.getThemesConfig()
	}

	return render(request, manageThemeDir + 'themes.html', context)
Exemple #2
0
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)