How to change the name of the entry point file in Flask?
You did actually set an environment variable with:
export FLASK_APP=some_silly_name.py
(Or with set instead of export on Windows). Even if you change your entry point file name and correct all references to the original file within the app, you'll need to re-set this variable to point to the new entry point.
I'm relatively inexperienced Python user and completely new to Flask, so I am sure this is dumb, but...
I had a file that acted as an entry point for Flask, named some_silly_name.py which contains the line app = Flask(__name__). The server was running fine, until I decided that that name was silly, so I renamed the file to a_much_better_name.py. Now on flask run I get the error Error: Could not import "some_silly_name".
What do I need to do to change the name of this file and still have Flask run?