This repository has been archived by the owner on May 12, 2020. It is now read-only.
ImportError: cannot import name 'SQLALchemy' from 'flask_sqlalchemy' #71
Labels
bug
Something isn't working
i m running this code
`from flask import Flask, render_template, url_for
from flask_sqlalchemy import SQLALchemy
from datetime import datetime
app = Flask(name)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
db = SQLALchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
content = db.Column(db.Integer, default = 0)
data_created = db.Column(db.datetime, default=datetime.utcnow)
@app.route("/")
def index():
return render_template("index.html")
if name == "main":
app.run(debug=True)`
and when i run it
Please help #71 #62 #9
The text was updated successfully, but these errors were encountered: