Skip to content
Closed

AI junk #6102

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/deploying/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ WSGI server or hosting platform, some of which will be described here.

"Production" means "not development", which applies whether you're
serving your application publicly to millions of users or privately /
locally to a single user. **Do not use the development server when
deploying to production. It is intended for use only during local
development. It is not designed to be particularly secure, stable, or
efficient.**
locally to a single user. **This is a development server. Do not use
it in a production deployment. It is not designed to be particularly
secure, stable, or efficient.**

Self-Hosted Options
-------------------
Expand Down
9 changes: 4 additions & 5 deletions docs/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ changed.

.. warning::

Do not use the development server when deploying to production. It
is intended for use only during local development. It is not
designed to be particularly efficient, stable, or secure.

See :doc:`/deploying/index` for deployment options.
This is a development server. Do not use it in a production
deployment. It is not designed to be particularly secure,
stable, or efficient. See :doc:`/deploying/index` for
deployment options.

Command Line
------------
Expand Down
7 changes: 4 additions & 3 deletions src/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,10 @@ def run(
) -> None:
"""Runs the application on a local development server.

Do not use ``run()`` in a production setting. It is not intended to
meet security and performance requirements for a production server.
Instead, see :doc:`/deploying/index` for WSGI server recommendations.
This is a development server. Do not use it in a production
deployment. It is not designed to be particularly secure,
stable, or efficient. See :doc:`/deploying/index` for WSGI
server recommendations.

If the :attr:`debug` flag is set the server will automatically reload
for code changes and show a debugger in case an exception happened.
Expand Down
7 changes: 4 additions & 3 deletions src/flask/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,11 @@ def run_command(
extra_files: list[str] | None,
exclude_patterns: list[str] | None,
) -> None:
"""Run a local development server.
"""Run a development server.

This server is for development purposes only. It does not provide
the stability, security, or performance of production WSGI servers.
This is a development server. Do not use it in a production
deployment. It is not designed to be particularly secure,
stable, or efficient. Use a production WSGI server instead.

The reloader and debugger are enabled by default with the '--debug'
option.
Expand Down
Loading