INNER CODE UNIT · Python

index

talkpython/data-driven-web-apps-with-flask · app/ch06_routing/starter/pypi_org/app.py:24

def index():
    test_packages = get_latest_packages()
    return {'packages': test_packages}
    # return flask.render_template('home/index.html', packages=test_packages)


@app.route('/about')
@response(template_file='home/about.html')
def about():
    return {}


if __name__ == '__main__':
    app.run(debug=True)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…