Flask app not running in Python Beta (new Nix module system)

Problem description:
I was using the new Python template, and when I went to my Flask website, it didn’t load. Another thing I noticed was that the console was acting like a Python shell.

Expected behavior:
Flask app will load

Actual behavior:
Flask app doesn’t load

Steps to reproduce:

  1. Make a Python repl (in the new template)
  2. make a Flask app
  3. go in my website

Bug appears at this link:


  app.run(host='', port=8080, debug=True)

I believe therein lies your issue, try removing debug=True from that:

  app.run(host='', port=8080)

I just realized it’s the same thing for the old template.

What if I want to destroy the bugs?

I usually just debug as I go. I’ve never run Flask in debug mode, nor Node if it even has one.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.