0

I have tried

export FLASK_ENV=development

then adding

app.config['DEBUG'] = True

to my program but i keep getting

* Serving Flask app "test.py" (lazy loading)
 * Environment: development
 * Debug mode: off
 * Running on https://87466804-e84d-413e-abd1-74dc56624149-ide.cs50.xyz:8080/ (Press CTRL+C to quit)
 * Restarting with stat

I'm unsure why? any help

2

Have you tried export FLASK_DEBUG=ON

2
  • Yes i found that this was the solution. However why did this work ? – Ryan Hinchliffe Oct 31 '19 at 14:29
  • If you are using the CS50 IDE, it has debug mode set to OFF by default, so if you want to turn it on, you have to explicitly set it. – curiouskiwi Oct 31 '19 at 18:11
0

I had the same issue.. took me a min to figure it out... but you have to use the following:

set FLASK_ENV=development

that should set the debug mode to Active when you restart flask...

Best of luck, Hekyl

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .