Replace old pocoo links everywhere
pocco.org -> palletsprojects.com
This commit is contained in:
parent
d49cfb35d4
commit
ef434ea998
12 changed files with 13 additions and 13 deletions
|
|
@ -23,7 +23,7 @@ intersphinx_mapping = {
|
||||||
"python": ("https://docs.python.org/3/", None),
|
"python": ("https://docs.python.org/3/", None),
|
||||||
"werkzeug": ("https://werkzeug.palletsprojects.com/", None),
|
"werkzeug": ("https://werkzeug.palletsprojects.com/", None),
|
||||||
"click": ("https://click.palletsprojects.com/", None),
|
"click": ("https://click.palletsprojects.com/", None),
|
||||||
"jinja": ("http://jinja.pocoo.org/docs/", None),
|
"jinja": ("https://jinja.palletsprojects.com/", None),
|
||||||
"itsdangerous": ("https://itsdangerous.palletsprojects.com/", None),
|
"itsdangerous": ("https://itsdangerous.palletsprojects.com/", None),
|
||||||
"sqlalchemy": ("https://docs.sqlalchemy.org/", None),
|
"sqlalchemy": ("https://docs.sqlalchemy.org/", None),
|
||||||
"wtforms": ("https://wtforms.readthedocs.io/en/stable/", None),
|
"wtforms": ("https://wtforms.readthedocs.io/en/stable/", None),
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ Flask in detail, with a full reference in the :ref:`api` section.
|
||||||
Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI
|
Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI
|
||||||
toolkit. The documentation for these libraries can be found at:
|
toolkit. The documentation for these libraries can be found at:
|
||||||
|
|
||||||
- `Jinja documentation <http://jinja.pocoo.org/docs>`_
|
- `Jinja documentation <https://jinja.palletsprojects.com/>`_
|
||||||
- `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_
|
- `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_
|
||||||
|
|
||||||
.. _Jinja: https://www.palletsprojects.com/p/jinja/
|
.. _Jinja: https://www.palletsprojects.com/p/jinja/
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ Rendering Templates
|
||||||
Generating HTML from within Python is not fun, and actually pretty
|
Generating HTML from within Python is not fun, and actually pretty
|
||||||
cumbersome because you have to do the HTML escaping on your own to keep
|
cumbersome because you have to do the HTML escaping on your own to keep
|
||||||
the application secure. Because of that Flask configures the `Jinja2
|
the application secure. Because of that Flask configures the `Jinja2
|
||||||
<http://jinja.pocoo.org/>`_ template engine for you automatically.
|
<https://palletsprojects.com/p/jinja/>`_ template engine for you automatically.
|
||||||
|
|
||||||
To render a template you can use the :func:`~flask.render_template`
|
To render a template you can use the :func:`~flask.render_template`
|
||||||
method. All you have to do is provide the name of the template and the
|
method. All you have to do is provide the name of the template and the
|
||||||
|
|
@ -392,7 +392,7 @@ package it's actually inside your package:
|
||||||
|
|
||||||
For templates you can use the full power of Jinja2 templates. Head over
|
For templates you can use the full power of Jinja2 templates. Head over
|
||||||
to the official `Jinja2 Template Documentation
|
to the official `Jinja2 Template Documentation
|
||||||
<http://jinja.pocoo.org/docs/templates/>`_ for more information.
|
<http://jinja.palletsprojects.com/templates/>`_ for more information.
|
||||||
|
|
||||||
Here is an example template:
|
Here is an example template:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ An extension can depend on Jinja2 being present.
|
||||||
This section only gives a very quick introduction into how Jinja2
|
This section only gives a very quick introduction into how Jinja2
|
||||||
is integrated into Flask. If you want information on the template
|
is integrated into Flask. If you want information on the template
|
||||||
engine's syntax itself, head over to the official `Jinja2 Template
|
engine's syntax itself, head over to the official `Jinja2 Template
|
||||||
Documentation <http://jinja.pocoo.org/docs/templates/>`_ for
|
Documentation <https://jinja.palletsprojects.com/templates/>`_ for
|
||||||
more information.
|
more information.
|
||||||
|
|
||||||
Jinja Setup
|
Jinja Setup
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ special variable available inside `Jinja for loops`_. It's used to
|
||||||
display a line after each post except the last one, to visually separate
|
display a line after each post except the last one, to visually separate
|
||||||
them.
|
them.
|
||||||
|
|
||||||
.. _Jinja for loops: http://jinja.pocoo.org/docs/templates/#for
|
.. _Jinja for loops: https://jinja.palletsprojects.com/templates/#for
|
||||||
|
|
||||||
|
|
||||||
Create
|
Create
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ statement like ``if`` and ``for``. Unlike Python, blocks are denoted
|
||||||
by start and end tags rather than indentation since static text within
|
by start and end tags rather than indentation since static text within
|
||||||
a block could change indentation.
|
a block could change indentation.
|
||||||
|
|
||||||
.. _Jinja: http://jinja.pocoo.org/docs/templates/
|
.. _Jinja: https://jinja.palletsprojects.com/templates/
|
||||||
.. _HTML: https://developer.mozilla.org/docs/Web/HTML
|
.. _HTML: https://developer.mozilla.org/docs/Web/HTML
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ page. Demonstrates using |XMLHttpRequest|_, |fetch|_, and
|
||||||
.. |jQuery.ajax| replace:: ``jQuery.ajax``
|
.. |jQuery.ajax| replace:: ``jQuery.ajax``
|
||||||
.. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/
|
.. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/
|
||||||
|
|
||||||
.. _Flask docs: http://flask.pocoo.org/docs/patterns/jquery/
|
.. _Flask docs: https://flask.palletsprojects.com/patterns/jquery/
|
||||||
|
|
||||||
|
|
||||||
Install
|
Install
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ with io.open("README.rst", "rt", encoding="utf8") as f:
|
||||||
setup(
|
setup(
|
||||||
name="js_example",
|
name="js_example",
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
url="http://flask.pocoo.org/docs/patterns/jquery/",
|
url="https://flask.palletsprojects.com/patterns/jquery/",
|
||||||
license="BSD",
|
license="BSD",
|
||||||
maintainer="Pallets team",
|
maintainer="Pallets team",
|
||||||
maintainer_email="contact@palletsprojects.com",
|
maintainer_email="contact@palletsprojects.com",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Flaskr
|
||||||
|
|
||||||
The basic blog app built in the Flask `tutorial`_.
|
The basic blog app built in the Flask `tutorial`_.
|
||||||
|
|
||||||
.. _tutorial: http://flask.pocoo.org/docs/tutorial/
|
.. _tutorial: https://flask.palletsprojects.com/tutorial/
|
||||||
|
|
||||||
|
|
||||||
Install
|
Install
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ with io.open("README.rst", "rt", encoding="utf8") as f:
|
||||||
setup(
|
setup(
|
||||||
name="flaskr",
|
name="flaskr",
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
url="http://flask.pocoo.org/docs/tutorial/",
|
url="https://flask.palletsprojects.com/tutorial/",
|
||||||
license="BSD",
|
license="BSD",
|
||||||
maintainer="Pallets team",
|
maintainer="Pallets team",
|
||||||
maintainer_email="contact@palletsprojects.com",
|
maintainer_email="contact@palletsprojects.com",
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ def explain_template_loading_attempts(app, template, attempts):
|
||||||
'belongs to the blueprint "%s".' % blueprint
|
'belongs to the blueprint "%s".' % blueprint
|
||||||
)
|
)
|
||||||
info.append(" Maybe you did not place a template in the right folder?")
|
info.append(" Maybe you did not place a template in the right folder?")
|
||||||
info.append(" See http://flask.pocoo.org/docs/blueprints/#templates")
|
info.append(" See https://flask.palletsprojects.com/blueprints/#templates")
|
||||||
|
|
||||||
app.logger.info("\n".join(info))
|
app.logger.info("\n".join(info))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,7 @@ def test_template_loader_debugging(test_apps, monkeypatch):
|
||||||
assert (
|
assert (
|
||||||
"looked up from an endpoint that belongs to " 'the blueprint "frontend"'
|
"looked up from an endpoint that belongs to " 'the blueprint "frontend"'
|
||||||
) in text
|
) in text
|
||||||
assert "See http://flask.pocoo.org/docs/blueprints/#templates" in text
|
assert "See https://flask.palletsprojects.com/blueprints/#templates" in text
|
||||||
|
|
||||||
with app.test_client() as c:
|
with app.test_client() as c:
|
||||||
monkeypatch.setitem(app.config, "EXPLAIN_TEMPLATE_LOADING", True)
|
monkeypatch.setitem(app.config, "EXPLAIN_TEMPLATE_LOADING", True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue