I have the following simple py file below. It works fine if I type python damn.py
, but it says not to use it as production server. I have installed waitress. In my case, what exactly should the argument in the " " be? I have tried waitress-serve --call "damn:create_app"
, but it id not work.
damn.py
from flask import Flask
api = Flask(__name__)
@api.route('/test', methods=['GET'])
def test():
return "Hello world"
if __name__ == '__main__':
api.run()