arpanneupane19 / Python-Flask-Authentication-Tutorial

MIT License
94 stars 97 forks source link

import db from all #3

Closed BookmDan closed 1 year ago

BookmDan commented 1 year ago

I'm having trouble with this part. I keep getting an Traceback error message

BookmDan commented 1 year ago

Screen Shot 2022-10-30 at 3 55 10 PM (2)

alwinjames7777 commented 1 year ago

same issue bro.did you find the solution?

BookmDan commented 1 year ago

no not yet

peer-pri commented 1 year ago

Did sb found the solution=?

alwinjames7777 commented 1 year ago

Yes, I did.

On Mon, Dec 5, 2022, 9:50 PM peer-pri @.***> wrote:

Did sb found the solution=?

— Reply to this email directly, view it on GitHub https://github.com/arpanneupane19/Python-Flask-Authentication-Tutorial/issues/3#issuecomment-1337654625, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3ASBLCMHLBMEPRGSFAWXDTWLYI6VANCNFSM6AAAAAARSR537M . You are receiving this because you commented.Message ID: <arpanneupane19/Python-Flask-Authentication-Tutorial/issues/3/1337654625@ github.com>

peer-pri commented 1 year ago

same me too

BookmDan commented 1 year ago

What was the issue?

peer-pri commented 1 year ago

​ 11 app = Flask(name) 12 app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db' 13 app.config['SECRET_KEY'] = 'thisisasecretkey' 14 db = SQLAlchemy(app) 15 bcrypt = Bcrypt(app)

it need to be like that