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 2ba37d2, ef62e84 · Browse files · 3 files+4 added−8 removed
This commit

State

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

Diff stats

3 files+4 added−8 removed

  • other:+4 added−8 removed

3 files+4 added−8 removed

modified:docs/patterns/jquery.rst+2 added-2 removed
29 unmodified lines
30 <script type=text/javascript src="{{31 url_for('static', filename='jquery.js') }}"></script>3233Another method is using Google's `AJAX Libraries API34<http://code.google.com/apis/ajaxlibs/documentation/>`_ to load jQuery:34<https://developers.google.com/speed/libraries/devguide>`_ to load jQuery:3536.. sourcecode:: html3738 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.js"></script>38 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>39 <script>window.jQuery || document.write('<script src="{{40 url_for('static', filename='jquery.js') }}">\x3C/script>')</script>4142In this case you have to put jQuery into your static folder as a fallback, but it will
125 unmodified lines
modified:examples/flaskr/README+1 added-6 removed
11 / Flaskr /23 a minimal blog application4
7 unmodified lines
12 1. edit the configuration in the flaskr.py file or13 export an FLASKR_SETTINGS environment variable14 pointing to a configuration file.1517 2. fire up a python shell and run this:1819 >>> from flaskr import init_db; init_db()2021 3. now you can run the flaskr.py file with your16 2. now you can run the flaskr.py file with your17 python interpreter and the application will18 greet you on http://localhost:5000/19 20 ~ Is it tested?
3 unmodified lines
modified:AUTHORS+1 added
26 unmodified lines
27- Simon Sapin28- Stephane Wirtel29- Thomas Schranz30- Zhao Xiaohong31- Edmond Burnett