Skip to content
Myr

Merge branch 'master' of github.com:mitsuhiko/flask

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 · parents d1d835c, da49f73 · Browse files · 2 files+6 added−5 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+6 added−5 removed

  • other:+6 added−5 removed

2 files+6 added−5 removed

modified:docs/tutorial/setup.rst+6 added
23 unmodified lines
24 SECRET_KEY = 'development key'25 USERNAME = 'admin'26 PASSWORD = 'default'2728.. admonition:: Windows2930 If you are on Windows, replace `/tmp/flaskr.db` with a different writeable31 path of your choice, in the configuration and for the rest of this32 tutorial.3334Next we can create our actual application and initialize it with the35config from the same file, in `flaskr.py`::3637 # create our little application :)
59 unmodified lines
modified:flask/app.py-5 removed
967 unmodified lines
968969 # Add the required methods now.970 methods |= required_methods971972 # due to a werkzeug bug we need to make sure that the defaults are973 # None if they are an empty dictionary. This should not be necessary974 # with Werkzeug 0.7975 options['defaults'] = options.get('defaults') or None976972 rule = self.url_rule_class(rule, methods=methods, **options)973 rule.provide_automatic_options = provide_automatic_options974975 self.url_map.add(rule)
863 unmodified lines