You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
Now, please let me make something clear. In mysite folder I'll make a flask blueprint, which has a template file index.php in templates folder. After that, I'll try to make an admin folder to initialize flask-admin admin object. This folder also has a templates folder. I like to override flask-admin base templates with the editor.html template in regarding templates folder. When I try, the flask-admin admin object only check in the blueprint templates folder. But I need different templates folder for mysite and admin. Any example for this, please?
The text was updated successfully, but these errors were encountered:
First of all I like to show you my test project skeleton:
In app.py, the codes are like below:
Now, please let me make something clear. In mysite folder I'll make a flask blueprint, which has a template file index.php in templates folder. After that, I'll try to make an admin folder to initialize flask-admin admin object. This folder also has a templates folder. I like to override flask-admin base templates with the editor.html template in regarding
templates
folder. When I try, the flask-admin admin object only check in the blueprint templates folder. But I need different templates folder formysite
andadmin
. Any example for this, please?The text was updated successfully, but these errors were encountered: