Skip to content
Myr

fix docks linkcheck

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

authored by David Lord · committed by David Lord · parent 28b35c5 · Browse files · 22 files+63 added−81 removed
This commit

State

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

Diff stats

22 files+63 added−81 removed

  • other:+63 added−81 removed

22 files+63 added−81 removed

modified:docs/deploying/cgi.rst+1 added-1 removed
56 unmodified lines
57 RewriteRule ^(.*)$ /path/to/the/application.cgi/$1 [L]5859For more information consult the documentation of your webserver.6061.. _App Engine: https://developers.google.com/appengine/61.. _App Engine: https://cloud.google.com/appengine/docs/
modified:docs/deploying/index.rst+1 added-4 removed
15 unmodified lines
16Hosted options17--------------1819- `Deploying Flask on Heroku <https://devcenter.heroku.com/articles/getting-started-with-python>`_20- `Deploying Flask on OpenShift <https://developers.openshift.com/en/python-flask.html>`_21- `Deploying Flask on Webfaction <http://flask.pocoo.org/snippets/65/>`_20- `Deploying Flask on Google App Engine <https://cloud.google.com/appengine/docs/standard/python/getting-started/python-standard-env>`_21- `Deploying Flask on AWS Elastic Beanstalk <https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html>`_24- `Sharing your Localhost Server with Localtunnel <http://flask.pocoo.org/snippets/89/>`_25- `Deploying on Azure (IIS) <https://azure.microsoft.com/documentation/articles/web-sites-python-configure/>`_22- `Deploying on Azure (IIS) <https://docs.microsoft.com/en-us/azure/app-service/containers/how-to-configure-python>`_23- `Deploying on PythonAnywhere <https://help.pythonanywhere.com/pages/Flask/>`_2425Self-hosted options26-------------------
9 unmodified lines
modified:docs/deploying/uwsgi.rst+1 added-1 removed
67 unmodified lines
6869.. _nginx: https://nginx.org/70.. _lighttpd: https://www.lighttpd.net/71.. _cherokee: http://cherokee-project.com/72.. _uwsgi: http://projects.unbit.it/uwsgi/72.. _uwsgi: https://uwsgi-docs.readthedocs.io/en/latest/
modified:docs/deploying/wsgi-standalone.rst+4 added-5 removed
41 unmodified lines
42Running `uWSGI HTTP Router`_::4344 uwsgi --http 127.0.0.1:5000 --module myproject:app4546For a more optimized setup, see `configuring uWSGI and NGINX`_.46For a more optimized setup, see :doc:`/deploying/uwsgi`.4748.. _uWSGI: http://uwsgi-docs.readthedocs.io/en/latest/49.. _uWSGI HTTP Router: http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router50.. _configuring uWSGI and NGINX: uwsgi.html#starting-your-app-with-uwsgi48.. _uWSGI: https://uwsgi-docs.readthedocs.io/en/latest/49.. _uWSGI HTTP Router: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router5051Gevent52-------53
30 unmodified lines
84application from ``myproject``::8586 twistd -n web --port tcp:8080 --wsgi myproject.app8789.. _Twisted: https://twistedmatrix.com/88.. _Twisted: https://twistedmatrix.com/trac/89.. _Twisted Web: https://twistedmatrix.com/trac/wiki/TwistedWeb9091.. _deploying-proxy-setups:92
63 unmodified lines
modified:docs/patterns/appfactories.rst+4 added-4 removed
58 unmodified lines
5960It's preferable to create your extensions and app factories so that the61extension object does not initially get bound to the application.6263Using `Flask-SQLAlchemy <http://flask-sqlalchemy.pocoo.org/>`_,63Using `Flask-SQLAlchemy <https://flask-sqlalchemy.palletsprojects.com/>`_,64as an example, you should not do something along those lines::6566 def create_app(config_filename):67 app = Flask(__name__)
24 unmodified lines
92To run such an application, you can use the :command:`flask` command::9394 export FLASK_APP=myapp95 flask run96 97Flask will automatically detect the factory (``create_app`` or ``make_app``) 9697Flask will automatically detect the factory (``create_app`` or ``make_app``)98in ``myapp``. You can also pass arguments to the factory like this::99100 export FLASK_APP="myapp:create_app('dev')"101 flask run102 102103Then the ``create_app`` factory in ``myapp`` is called with the string104``'dev'`` as the argument. See :doc:`/cli` for more detail.105106Factory Improvements
11 unmodified lines
modified:docs/patterns/jquery.rst+2 added-2 removed
9 unmodified lines
10Python primitives (numbers, strings, dicts and lists) look like which is11widely supported and very easy to parse. It became popular a few years12ago and quickly replaced XML as transport format in web applications.1314.. _jQuery: http://jquery.com/14.. _jQuery: https://jquery.com/1516Loading jQuery17--------------18
7 unmodified lines
26 <script type=text/javascript src="{{27 url_for('static', filename='jquery.js') }}"></script>2829Another method is using Google's `AJAX Libraries API30<https://developers.google.com/speed/libraries/devguide>`_ to load jQuery:30<https://developers.google.com/speed/libraries/>`_ to load jQuery:3132.. sourcecode:: html3334 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
133 unmodified lines
modified:docs/patterns/sqlalchemy.rst+1 added-1 removed
20 unmodified lines
2122You can download `Flask-SQLAlchemy`_ from `PyPI23<https://pypi.org/project/Flask-SQLAlchemy/>`_.2425.. _Flask-SQLAlchemy: http://flask-sqlalchemy.pocoo.org/25.. _Flask-SQLAlchemy: https://flask-sqlalchemy.palletsprojects.com/262728Declarative29-----------
189 unmodified lines
modified:docs/tutorial/deploy.rst+1 added-1 removed
114 unmodified lines
115your application. Waitress is just an example, chosen for the tutorial116because it supports both Windows and Linux. There are many more WSGI117servers and deployment options that you may choose for your project.118119.. _Waitress: https://docs.pylonsproject.org/projects/waitress/119.. _Waitress: https://docs.pylonsproject.org/projects/waitress/en/stable/120121Continue to :doc:`next`.
modified:docs/tutorial/install.rst+1 added-1 removed
68 unmodified lines
6970See the `official packaging guide`_ for another explanation of the files71and options used.7273.. _official packaging guide: https://packaging.python.org/tutorials/distributing-packages/73.. _official packaging guide: https://packaging.python.org/tutorials/packaging-projects/747576Install the Project77-------------------
37 unmodified lines
modified:docs/api.rst+3 added-3 removed
41 unmodified lines
42 .. attribute:: url43 .. attribute:: base_url44 .. attribute:: url_root4546 Provides different ways to look at the current `IRI47 <http://tools.ietf.org/html/rfc3987>`_. Imagine your application is48 listening on the following application root::46 Provides different ways to look at the current :rfc:`3987`.47 Imagine your application is listening on the following application48 root::4950 http://www.example.com/myapplication5152 And a user requests the following URI::
781 unmodified lines
modified:docs/becomingbig.rst+1 added-1 removed
42 unmodified lines
43The :ref:`app-dispatch` chapter shows in detail how to apply middleware. You44can introduce WSGI middleware to wrap your Flask instances and introduce fixes45and changes at the layer between your Flask application and your HTTP46server. Werkzeug includes several `middlewares47<http://werkzeug.pocoo.org/docs/middlewares/>`_.47<https://werkzeug.palletsprojects.com/middleware/>`_.4849Fork.50-----51
50 unmodified lines
modified:docs/cli.rst+3 added-3 removed
8 unmodified lines
9interface, in your virtualenv. Executed from the terminal, this script gives10access to built-in, extension, and application-defined commands. The ``--help``11option will give more information about any commands and options.1213.. _Click: http://click.pocoo.org/13.. _Click: https://click.palletsprojects.com/141516Application Discovery17---------------------
321 unmodified lines
339 },340 )341342343.. _entry point: https://packaging.python.org/tutorials/distributing-packages/#entry-points343.. _entry point: https://packaging.python.org/tutorials/packaging-projects/#entry-points344345Inside :file:`flask_my_extension/commands.py` you can then export a Click346object::347
60 unmodified lines
408409 The ``flask`` command, being separate from your code, does not have410 this issue and is recommended in most cases.411412.. _console script: https://packaging.python.org/tutorials/distributing-packages/#console-scripts412.. _console script: https://packaging.python.org/tutorials/packaging-projects/#console-scripts413414415PyCharm Integration416-------------------
50 unmodified lines
modified:docs/errorhandling.rst+2 added-2 removed
32 unmodified lines
3334Sending error mails, even if just for critical ones, can become35overwhelming if enough users are hitting the error and log files are36typically never looked at. This is why we recommend using `Sentry37<https://www.getsentry.com/>`_ for dealing with application errors. It's37<https://sentry.io/welcome/>`_ for dealing with application errors. It's38available as an Open Source project `on GitHub39<https://github.com/getsentry/sentry>`__ and is also available as a `hosted version40<https://getsentry.com/signup/>`_ which you can try for free. Sentry40<https://sentry.io/signup/>`_ which you can try for free. Sentry41aggregates duplicate errors, captures the full stack trace and local42variables for debugging, and sends you mails based on new errors or43frequency thresholds.44
171 unmodified lines
modified:docs/extensiondev.rst+5 added-6 removed
2 unmodified lines
3Flask Extension Development4===========================56Flask, being a microframework, often requires some repetitive steps to get7a third party library working. Because very often these steps could be8abstracted to support multiple projects the `Flask Extension Registry`_9was created.7a third party library working. Many such extensions are already available8on `PyPI <https://pypi.org/search/?c=Framework+%3A%3A+Flask>`_.910If you want to create your own Flask extension for something that does not11exist yet, this guide to extension development will help you get your12extension running in no time and to feel like users would expect your
313 unmodified lines
326 *ExtensionName-Flask*.3276. Approved extensions must define all their dependencies in the328 :file:`setup.py` file unless a dependency cannot be met because it is not329 available on PyPI.3317. The documentation must use the ``flask`` theme from the `Official332 Pallets Themes`_.3307. The documentation must use the ``flask`` theme from the331 `Official Pallets Themes`_.3328. The setup.py description (and thus the PyPI description) has to333 link to the documentation, website (if there is one) and there334 must be a link to automatically install the development version335 (``PackageName==dev``).
4 unmodified lines
340341.. _OAuth extension: https://pythonhosted.org/Flask-OAuth/342.. _mailinglist: http://flask.pocoo.org/mailinglist/343.. _IRC channel: http://flask.pocoo.org/community/irc/345.. _Official Pallets Themes: https://pypi.org/project/pallets-sphinx-themes/344.. _Official Pallets Themes: https://pypi.org/project/Pallets-Sphinx-Themes/
modified:docs/htmlfaq.rst+1 added-1 removed
184 unmodified lines
185Many other features have been added, as well. A good guide to new features186in HTML5 is Mark Pilgrim's soon-to-be-published book, `Dive Into HTML5`_.187Not all of them are supported in browsers yet, however, so use caution.188189.. _Dive Into HTML5: http://diveintohtml5.info/189.. _Dive Into HTML5: https://diveintohtml5.info/190191What should be used?192--------------------193
14 unmodified lines
modified:docs/index.rst+1 added-1 removed
17 unmodified lines
18Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI19toolkit. The documentation for these libraries can be found at:2021- `Jinja documentation <http://jinja.pocoo.org/docs>`_22- `Werkzeug documentation <http://werkzeug.pocoo.org/docs>`_22- `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_2324.. _Jinja: https://www.palletsprojects.com/p/jinja/25.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/26
65 unmodified lines
modified:docs/installation.rst+5 added-5 removed
23 unmodified lines
24 to protect Flask's session cookie.25* `Click`_ is a framework for writing command line applications. It provides26 the ``flask`` command and allows adding custom management commands.2728.. _Werkzeug: http://werkzeug.pocoo.org/29.. _Jinja: http://jinja.pocoo.org/30.. _MarkupSafe: https://pypi.org/project/MarkupSafe/31.. _ItsDangerous: https://pythonhosted.org/itsdangerous/32.. _Click: http://click.pocoo.org/28.. _Werkzeug: https://palletsprojects.com/p/werkzeug/29.. _Jinja: https://palletsprojects.com/p/jinja/30.. _MarkupSafe: https://palletsprojects.com/p/markupsafe/31.. _ItsDangerous: https://palletsprojects.com/p/itsdangerous/32.. _Click: https://palletsprojects.com/p/click/3334Optional dependencies35~~~~~~~~~~~~~~~~~~~~~36
150 unmodified lines
modified:docs/quickstart.rst+6 added-7 removed
67 unmodified lines
68This launches a very simple builtin server, which is good enough for testing69but probably not what you want to use in production. For deployment options see70:ref:`deployment`.7172Now head over to `http://127.0.0.1:5000/ <http://127.0.0.1:5000/>`_, and you73should see your hello world greeting.72Now head over to http://127.0.0.1:5000/, and you should see your hello73world greeting.7475.. _public-server:7677.. admonition:: Externally Visible Server
88 unmodified lines
166167More information on using the debugger can be found in the `Werkzeug168documentation`_.169170.. _Werkzeug documentation: http://werkzeug.pocoo.org/docs/debug/#using-the-debugger170.. _Werkzeug documentation: https://werkzeug.palletsprojects.com/debug/#using-the-debugger171172Have another debugger in mind? See :ref:`working-with-debuggers`.173174
208 unmodified lines
383 /hello.html384385For templates you can use the full power of Jinja2 templates. Head over386to the official `Jinja2 Template Documentation387<http://jinja.pocoo.org/docs/templates>`_ for more information.387<http://jinja.pocoo.org/docs/templates/>`_ for more information.388389Here is an example template:390391.. sourcecode:: html+jinja
426 unmodified lines
818 app.logger.warning('A warning occurred (%d apples)', 42)819 app.logger.error('An error occurred')820821The attached :attr:`~flask.Flask.logger` is a standard logging822:class:`~logging.Logger`, so head over to the official `logging823documentation <https://docs.python.org/library/logging.html>`_ for more824information.822:class:`~logging.Logger`, so head over to the official :mod:`logging`823docs for more information.824825Read more on :ref:`application-errors`.826827Hooking in WSGI Middlewares
23 unmodified lines
modified:docs/templating.rst+1 added-1 removed
9 unmodified lines
1011This section only gives a very quick introduction into how Jinja212is integrated into Flask. If you want information on the template13engine's syntax itself, head over to the official `Jinja2 Template14Documentation <http://jinja.pocoo.org/docs/templates>`_ for14Documentation <http://jinja.pocoo.org/docs/templates/>`_ for15more information.1617Jinja Setup18-----------
218 unmodified lines
modified:docs/testing.rst+3 added-4 removed
18 unmodified lines
19framework for our tests. You can install it with ``pip``, like so::2021 pip install pytest2223.. _pytest:24 https://pytest.org23.. _pytest: https://docs.pytest.org/2425The Application26---------------27
423 unmodified lines
451 def test_hello_params():452 context = hello_command.make_context('hello', ['--name', 'flask'])453 assert context.params['name'] == 'FLASK'454456.. _click: http://click.pocoo.org/457.. _utilities for testing: http://click.pocoo.org/testing455.. _click: https://click.palletsprojects.com/456.. _utilities for testing: https://click.palletsprojects.com/testing/
modified:docs/unicode.rst+3 added-3 removed
4 unmodified lines
5text. Not only these libraries, also the majority of web related Python6libraries that deal with text. If you don't know Unicode so far, you7should probably read `The Absolute Minimum Every Software Developer8Absolutely, Positively Must Know About Unicode and Character Sets9<http://www.joelonsoftware.com/articles/Unicode.html>`_. This part of the10documentation just tries to cover the very basics so that you have a11pleasant experience with Unicode related things.9<https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/>`_.10This part of the documentation just tries to cover the very basics so11that you have a pleasant experience with Unicode related things.1213Automatic Conversion14--------------------15
92 unmodified lines
modified:CONTRIBUTING.rst+13 added-24 removed
7 unmodified lines
89Please, don't use the issue tracker for this. Use one of the following10resources for questions about your own code:1112* The ``#get-help`` channel on our Discord chat: https://discord.gg/t6rrQZH12* The ``#get-help`` channel on our Discord chat: https://discordapp.com/invite/t6rrQZH1314 * The IRC channel ``#pocoo`` on FreeNode is linked to Discord, but15 Discord is preferred.16
6 unmodified lines
23Reporting issues24----------------2526- Describe what you expected to happen.27- If possible, include a `minimal, complete, and verifiable example`_ to help28 us identify the issue. This also helps check that the issue is not with your29 own code.27- If possible, include a `minimal reproducible example`_ to help us28 identify the issue. This also helps check that the issue is not with29 your own code.30- Describe what actually happened. Include the full traceback if there was an31 exception.32- List your Python, Flask, and Werkzeug versions. If possible, check if this33 issue is already fixed in the repository.3435.. _minimal, complete, and verifiable example: https://stackoverflow.com/help/mcve35.. _minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example3637Submitting patches38------------------39
35 unmodified lines
75 pip install -e ".[dev]"7677.. _GitHub account: https://github.com/join78.. _latest version of git: https://git-scm.com/downloads79.. _username: https://help.github.com/articles/setting-your-username-in-git/80.. _email: https://help.github.com/articles/setting-your-email-in-git/79.. _username: https://help.github.com/en/articles/setting-your-username-in-git80.. _email: https://help.github.com/en/articles/setting-your-commit-email-address-in-git81.. _Fork: https://github.com/pallets/flask/fork82.. _Clone: https://help.github.com/articles/fork-a-repo/#step-2-create-a-local-clone-of-your-fork82.. _Clone: https://help.github.com/en/articles/fork-a-repo#step-2-create-a-local-clone-of-your-fork8384Start coding85~~~~~~~~~~~~86
8 unmodified lines
9596 git checkout -b your-branch-name origin/master9798- Using your favorite editor, make your changes, `committing as you go`_.99- Try to follow `PEP8`_, but you may ignore the line length limit if following100 it would make the code uglier.99- Try to follow `PEP8`_. We have a pre-commit config and tests that will100 ensure the code follows our style guide.101- Include tests that cover any code changes you make. Make sure the test fails102 without your patch. `Run the tests. <contributing-testsuite_>`_.103- Push your commits to GitHub and `create a pull request`_ by using::104105 git push --set-upstream origin your-branch-name106107- Celebrate 🎉108109.. _committing as you go: http://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes109.. _committing as you go: https://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes110.. _PEP8: https://pep8.org/111.. _create a pull request: https://help.github.com/articles/creating-a-pull-request/111.. _create a pull request: https://help.github.com/en/articles/creating-a-pull-request112113.. _contributing-testsuite:114115Running the tests
40 unmodified lines
156 make html157158Open ``_build/html/index.html`` in your browser to view the docs.159160Read more about `Sphinx <http://www.sphinx-doc.org>`_.160Read more about `Sphinx <https://www.sphinx-doc.org/en/master/>`_.161162163make targets164~~~~~~~~~~~~165166Flask provides a ``Makefile`` with various shortcuts. They will ensure that167all dependencies are installed.168169- ``make test`` runs the basic test suite with ``pytest``170- ``make cov`` runs the basic test suite with ``coverage``171- ``make test-all`` runs the full test suite with ``tox``172- ``make docs`` builds the HTML documentation173163Caution: zero-padded file modes164-------------------------------165166This repository contains several zero-padded file modes that may cause issues
18 unmodified lines