This is my very first post, so excuse me for any mistakes...
I'm building a Flask App and using Flask Bootstrap, but I can't find out why I'm getting this error since this method belongs to the base.html template of the flask-bootstrap package.
File "c:\users\diego\documents\repositorios\simpleiotserver\venv\lib\site-packages\flask_bootstrap\templates\bootstrap\base.html", line 15, in block "styles"
jinja2.exceptions.UndefinedError: 'bootstrap_find_resource' is undefined
Seems like everything was done as it should and I can't find the mistake by myself.
Here's the code...
from flask_bootstrap import Bootstrap
from config import config
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
bootstrap.init_app(app)
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
from .api_v1 import api_v1 as api_v1_blueprint
app.register_blueprint(api_v1_blueprint)
return app
I've created another virtual environment and checked on the Flask instance configurations.
Probably some package was missing. It all works fine now.