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
{{ message }}
This repository was archived by the owner on May 12, 2020. It is now read-only.
ImportError: cannot import name 'SQLALchemy' from 'flask_sqlalchemy' (c:\users(My User)\onedrive\documents\flask\env\lib\site-packages\flask_sqlalchemy_init_.py)
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