from webhook import app if __name__ == "__main__": app.run()
from os import path from webhook import app app.config.from_pyfile(path.join(path.dirname(path.abspath(__file__)), 'config', 'webhook.py')) if __name__ == '__main__': app.run(debug=True)
from webhook import app import os if __name__ == "__main__": app.run(debug=True)
# -*- coding: utf-8 -*- from werkzeug.contrib.fixers import ProxyFix from webhook import app __author__ = "mkr" app.wsgi_app = ProxyFix(app.wsgi_app) if __name__ == "__main__": app.run()