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')


  1. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.