Merge pull request #3427 from greyli/update-old-links
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Update old pocoo links everywhere
authored by David Lord · committed by GitHub · parents d49cfb3, a3415fc · Browse files · 12 files·+13 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
12 files+13 added−13 removed
- tests:+1 added−1 removed
- other:+12 added−12 removed
Provenance
- Commit
25a5d30- Tree
bdff3ac- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
d49cfb3- Parent 2
a3415fc
12 files changed+13 added−13 removed
modified:docs/tutorial/blog.rst+1 added-1 removed
123 unmodified lines124 special variable available inside `Jinja for loops`_. It's used to125 display a line after each post except the last one, to visually separate126 them.127 128-.. _Jinja for loops: http://jinja.pocoo.org/docs/templates/#for128+.. _Jinja for loops: https://jinja.palletsprojects.com/templates/#for129 130 131 Create132 ------204 unmodified linesmodified:docs/tutorial/templates.rst+1 added-1 removed
29 unmodified lines30 statement like ``if`` and ``for``. Unlike Python, blocks are denoted31 by start and end tags rather than indentation since static text within32 a block could change indentation.33 34-.. _Jinja: http://jinja.pocoo.org/docs/templates/34+.. _Jinja: https://jinja.palletsprojects.com/templates/35 .. _HTML: https://developer.mozilla.org/docs/Web/HTML36 37 38 The Base Layout149 unmodified linesmodified:docs/conf.py+1 added-1 removed
21 unmodified lines22 intersphinx_mapping = {23 "python": ("https://docs.python.org/3/", None),24 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),25 "click": ("https://click.palletsprojects.com/", None),26- "jinja": ("http://jinja.pocoo.org/docs/", None),26+ "jinja": ("https://jinja.palletsprojects.com/", None),27 "itsdangerous": ("https://itsdangerous.palletsprojects.com/", None),28 "sqlalchemy": ("https://docs.sqlalchemy.org/", None),29 "wtforms": ("https://wtforms.readthedocs.io/en/stable/", None),30 "blinker": ("https://pythonhosted.org/blinker/", None),66 unmodified linesmodified:docs/index.rst+1 added-1 removed
18 unmodified lines19 20 Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI21 toolkit. The documentation for these libraries can be found at:22 23-- `Jinja documentation <http://jinja.pocoo.org/docs>`_23+- `Jinja documentation <https://jinja.palletsprojects.com/>`_24 - `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_25 26 .. _Jinja: https://www.palletsprojects.com/p/jinja/27 .. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/66 unmodified linesmodified:docs/quickstart.rst+2 added-2 removed
357 unmodified lines358 359 Generating HTML from within Python is not fun, and actually pretty360 cumbersome because you have to do the HTML escaping on your own to keep361 the application secure. Because of that Flask configures the `Jinja2362-<http://jinja.pocoo.org/>`_ template engine for you automatically.362+<https://palletsprojects.com/p/jinja/>`_ template engine for you automatically.363 364 To render a template you can use the :func:`~flask.render_template`365 method. All you have to do is provide the name of the template and the366 variables you want to pass to the template engine as keyword arguments.24 unmodified lines391 /hello.html392 393 For templates you can use the full power of Jinja2 templates. Head over394 to the official `Jinja2 Template Documentation395-<http://jinja.pocoo.org/docs/templates/>`_ for more information.395+<https://jinja.palletsprojects.com/templates/>`_ for more information.396 397 Here is an example template:398 399 .. sourcecode:: html+jinja501 unmodified linesmodified:docs/templating.rst+1 added-1 removed
9 unmodified lines10 11 This section only gives a very quick introduction into how Jinja212 is integrated into Flask. If you want information on the template13 engine's syntax itself, head over to the official `Jinja2 Template14-Documentation <http://jinja.pocoo.org/docs/templates/>`_ for14+Documentation <https://jinja.palletsprojects.com/templates/>`_ for15 more information.16 17 Jinja Setup18 -----------218 unmodified linesmodified:examples/javascript/README.rst+1 added-1 removed
13 unmodified lines14 15 .. |jQuery.ajax| replace:: ``jQuery.ajax``16 .. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/17 18-.. _Flask docs: http://flask.pocoo.org/docs/patterns/jquery/18+.. _Flask docs: https://flask.palletsprojects.com/patterns/jquery/19 20 21 Install22 -------27 unmodified linesmodified:examples/javascript/setup.py+1 added-1 removed
7 unmodified lines8 9 setup(10 name="js_example",11 version="1.0.0",12- url="http://flask.pocoo.org/docs/patterns/jquery/",12+ url="https://flask.palletsprojects.com/patterns/jquery/",13 license="BSD",14 maintainer="Pallets team",15 maintainer_email="contact@palletsprojects.com",16 description="Demonstrates making Ajax requests to Flask.",7 unmodified linesmodified:examples/tutorial/README.rst+1 added-1 removed
1 unmodified line2 ======3 4 The basic blog app built in the Flask `tutorial`_.5 6-.. _tutorial: http://flask.pocoo.org/docs/tutorial/6+.. _tutorial: https://flask.palletsprojects.com/tutorial/7 8 9 Install10 -------67 unmodified linesmodified:examples/tutorial/setup.py+1 added-1 removed
7 unmodified lines8 9 setup(10 name="flaskr",11 version="1.0.0",12- url="http://flask.pocoo.org/docs/tutorial/",12+ url="https://flask.palletsprojects.com/tutorial/",13 license="BSD",14 maintainer="Pallets team",15 maintainer_email="contact@palletsprojects.com",16 description="The basic blog app built in the Flask tutorial.",7 unmodified linesmodified:src/flask/debughelpers.py+1 added-1 removed
162 unmodified lines163 " The template was looked up from an endpoint that "164 'belongs to the blueprint "%s".' % blueprint165 )166 info.append(" Maybe you did not place a template in the right folder?")167- info.append(" See http://flask.pocoo.org/docs/blueprints/#templates")167+ info.append(" See https://flask.palletsprojects.com/blueprints/#templates")168 169 app.logger.info("\n".join(info))170 171 12 unmodified linesmodified:tests/test_templating.py+1 added-1 removed
424 unmodified lines425 assert "Error: the template could not be found" in text426 assert (427 "looked up from an endpoint that belongs to " 'the blueprint "frontend"'428 ) in text429- assert "See http://flask.pocoo.org/docs/blueprints/#templates" in text429+ assert "See https://flask.palletsprojects.com/blueprints/#templates" in text430 431 with app.test_client() as c:432 monkeypatch.setitem(app.config, "EXPLAIN_TEMPLATE_LOADING", True)433 monkeypatch.setattr(20 unmodified lines