Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Background on this error at: http://sqlalche.me/e/e3q8)

Tags:

python-3.x

I'm trying to get the user to submit a form on the homepage and then save that form to a SQL database. However, when the user submits the form, I get the following error: (Background on this error at: http://sqlalche.me/e/e3q8)

This is my __int__.py:

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager

app = Flask(__name__)
app.config['SECRET_KEY'] = '5791628bb0b13ce0c676dfde280ba245'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'

db = SQLAlchemy(app)
bcrypt = Bcrypt(app)

login_manager = LoginManager(app)
login_manager.login_view = 'login'
login_manager.login_message_category = 'info'

from flaskblog1 import routes
like image 795
Asge Yohannes Avatar asked Oct 04 '18 00:10

Asge Yohannes


1 Answers

I found my problem I didnt create my data base db.create_all()

like image 189
Asge Yohannes Avatar answered Oct 20 '22 16:10

Asge Yohannes