Answer the question
In order to leave comments, you need to log in
Extension for Flask and sqlalchemy?
In general, is it possible to create an extension for the flask ala Django-module, that is, which can fully work with sqlalchemy (create a table, save)?
from flask.ext.blog import Blog()<br>
blog = blog(app, db_session=session)<br>
db = SQLAlchemy()<br>
<br>
User(db.Model):<br>
__tablename__ = 'users'<br>
....<br>
db = SQLAlchemy() # новый!<br>
<br>
Group(db.Model):<br>
__tablename__ = 'groups'<br>
....<br>
users = db.relationship('User') # ошибка мапинга<br>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question