Forums

Using Flask-WTF and Flask_bootstrap to render a form

I am trying to accomplish the following in my template html file:

{% import "bootstrap/wtf.html" as wtf %}

I have tried installing bootstrap & flask-wtf but it appears they are installed. When I go to the file source I do not see bootstrap/wtf.html (/home/mydirectory/.local/lib/python3.4/site-packages). I just want to know how to point to this file, any help greatly appreciated thanks.

The file is in /usr/local/lib/pythonX.X/dist-packages/flask_bootstrap/templates/bootstrap/wtf.html. Just replace X.X with whatever version of Python you're using.