Flask Accounts & Authentication

Hey, I am on Flask accounts and authentication, and exercise 2/7 solution shows the code at the start of the exercise, and exercise 3/7’s example code has a serious mistake:

from flask import flask
from flask_sqlalchemy import SQLAlchemy

app = __Flask__(app)
db = SQLAlchemy(app)

It has app = __Flask__(app) instead of app = Flask(__name__)
also, exercise 3/7, I am providing correct code, & It won’t let me pass the 1st checkpoint

Can you be more specific here? What is the exercise asking you to do, what is your code? I personally don’t have pro access but I may be able to help out with some flask related issues, that’s why I mention it.

Hey again @toastedpitabread,
Here is code:
from exercise 3/7, of course:

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
db = SQLAlchemy(app)

def hello_world():
    hardcoded_password_string = "IamHArdCoDed"
    return 'Hello, Dinner Party!'

The exercise checkpoint 1 is asking me to:

  1. Import SQLAlchemy
  2. Then instantiate a db variable from SQLAlchemy
    Also, here is a screenshot:

What’s the precise wording of the exercise checkpoint?

Your code is obviously fine. :sweat_smile:

Oh, Ha ha. :grinning: :grinning:
Well, the exact wording is:

Set up Flask-SQLAlchemy for use in our web application.

Basically what I said above.


It seems like this needs some review from CC then :wink:

Then should we call in @thepitycoder because he is the ‘bug reporter’ of the forums

Never mind… I reported the bug using the Get help button. Thanks @toastedpitabread.

So how did you complete exercise 2/7? I’m facing the same issue.

Did you try printing the hash to see if it worked?



Seems like a bug. It lets you skip if you click show solution right?

Yes, but it shows the code at the beginning and somehow I can pass this exercise with that code as @hypercoder457 said.

Really the only way to pass that exercise is to look at the solution @core9221442141

1 Like

Haven’t reported this yet, but the exercise shows a mistake, saying SLQAlchemy instead of SQLAlchemy

How can we engage CC developer into this bug?

They’re aware of it and working on it. It’s a process.

Thanks for letting me know that. Will wait for response from them.

And also @core9221442141, @toastedpitabread, this is a new path… so it will have a lot of bugs probably.

Same issue for me - every single lesson on Flask Accounts & Authentication is bugged. Correct code won’t let me pass, and pressing for the solution just gives the original code that we started with. I think it’s a dead end for now.