From 8787ade4f3f3adefd33237bf8ddfcfec4ca424eb Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Thu, 5 Apr 2018 09:08:47 +0100 Subject: Attempt to fix CSRF; add debug info to staff page --- pysite/views/staff/index.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pysite/views/staff/index.py') diff --git a/pysite/views/staff/index.py b/pysite/views/staff/index.py index e5c3c1b0..7569ba32 100644 --- a/pysite/views/staff/index.py +++ b/pysite/views/staff/index.py @@ -1,4 +1,8 @@ # coding=utf-8 +from pprint import pformat + +from flask import current_app + from pysite.base_route import RouteView from pysite.constants import ALL_STAFF_ROLES from pysite.decorators import require_roles @@ -10,4 +14,4 @@ class StaffView(RouteView): @require_roles(*ALL_STAFF_ROLES) def get(self): - return self.render("staff/staff.html") + return self.render("staff/staff.html", app_config=pformat(current_app.config, indent=4, width=120)) -- cgit v1.2.3