Код такой:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLAlCHERMY_DATABASE_URI'] = 'postgresql://localhost/seal'
db = SQLAlchemy(app)
class Messages(db.Model):
id = db.Column(db.Integer, primary_key=True)
Message = db.Column(db.String(256))
Active = db.Boolean()
В консоле пишу:
>>> from sqll import Messages
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sqll.py", line 2, in <module>
from flask_sqlalchemy import SQLAlchermy
ImportError: cannot import name SQLAlchermy
Mac OS