Answer the question
In order to leave comments, you need to log in
Why writes that there is no library although it is :( SQLAlchemy?
The code is like this:
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
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