Thursday, January 2, 2014

UndefinedError: 'admin_base_template' is undefined - Flask Admin

This happens when you try to render a template like this:
return render_template('admin/upload.html')

You need to use self.render instead:
return self.render('admin/upload.html')

No comments:

Post a Comment