79159891

Date: 2024-11-05 16:21:23
Score: 1
Natty:
Report link

I would recommend add a run.py file at the WorkingDirectory with content like:

# -*- coding: utf-8 -*-

from app import create_app
from config import Config

# Remember don't use if __name__ == 'main' in this file
my_app = create_app(Config)
my_app.run(host='127.0.0.1', port=5000, debug=True)

and then config the run/debug configuration like: PyCharm configuration

And all things will work just like we have the app.py

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Denny