diff --git a/datasette/views/base.py b/datasette/views/base.py index 32e6fdda..8481b9c4 100644 --- a/datasette/views/base.py +++ b/datasette/views/base.py @@ -81,7 +81,7 @@ class BaseView(AsgiView): "database_color": self.database_color, }, } - if request and request.args.get("_context") and self.config("template_debug"): + if request and request.args.get("_context") and self.ds.config("template_debug"): return Response.html( "
{}".format(
escape(json.dumps(template_context, default=repr, indent=4))