On 2020-05-22 10:22:40 -0400, Buddy Peacock wrote:
> Thank you Souvik, but still having issues. I have pasted the command line
> interaction this time. My prior message is what appeared in the browser.
> =
Still no go. I even tried using the entire path of the py ap in the SET
FLASK_APP command
This is my code now after trying your suggestions.
===
import os
from flask import Flask, session
from flask_session import Sessio
You might have to add @app.route("/") before the main method.
On Fri, 22 May, 2020, 7:53 pm Buddy Peacock,
wrote:
> Thank you Souvik, but still having issues. I have pasted the command line
> interaction this time. My prior message is what appeared in the browser.
>
>
And also you might have to add after the import statements app=
Flask(__name__)
and app.run() inside the main function
On Fri, 22 May, 2020, 8:31 pm Souvik Dutta, wrote:
> You might have to add @app.route("/") before the main method.
>
> On Fri, 22 May, 2020, 7:53 pm Buddy Peacock,
> wrote:
>
Thank you Souvik, but still having issues. I have pasted the command line
interaction this time. My prior message is what appeared in the browser.
c:\Harvard\project1>SET FLASK_APP="cr
There will be quotes when doing FLASK_APP="" I think that
should solve the problem.
On Fri, 22 May, 2020, 5:35 pm Buddy Peacock,
wrote:
> I'm working on my first python project in CS50W and I am trying to create
> 2 tables.
> I am getting the following error when trying to run it: I have inclu
I'm working on my first python project in CS50W and I am trying to create
2 tables.
I am getting the following error when trying to run it: I have included my
code below the error message.
flask.cli.NoAppException: Failed to find Flask application or factory in
module "create_db". Use "FLASK_APP