Skip to content
Myr

Added test project I use for testing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 6d072f0 · Browse files · 2 files+31 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+31 added−0 removed

  • other:+31 added−0 removed

2 files+31 added−0 removed

added:scripts/testproj/templates/index.html+1 added
added:scripts/testproj/test.py+30 added
1from flask import Flask, Module234mod = Module(__name__)5mod2 = Module(__name__, 'testmod2')67app = Flask(__name__)8app.register_module(mod)9app.register_module(mod2)101112@app.after_request13def after_request(response):14 g.db.close()15 return response161718@mod.route('/')19def index():20 return render_template('test/index.html')212223@mod2.route('/')24def index():25 return render_template('testmod2/index.html')262728@mod2.route('/')29def index():30 return render_template('something-else/index.html')