Terminal - lecture 4: __name__ and __main__
$ python -m flask_day_54.domain.name_demo
Running as the main program: the file was executed directly
$ python -c "import flask_day_54.domain.name_demo as m; print(m.describe_name(m.__name__))"
Running as an imported module named flask_day_54.domain.name_demo
$ python -m flask_day_54.presentation.hello
* Serving Flask app 'hello'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
^C