import os from flask import Flask app = Flask(__name__) @app.route('/') def index(): template = """ {title}

Hello, world!

I am website {title}

Accept-Encoding header was set to {acceptencoding}

""" output = template.format(title=os.environ.get("WEBSITE_NAME", "that nobody set a name for :("), acceptencoding=os.environ.get("HTTP_ACCEPT_ENCODING", "HTTP accept encoding not set")) return output