Skip to content
Myr

1.0 -> 0.11 in the docs

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 · parent 1df426a · Browse files · 7 files+21 added−11 removed
This commit

State

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

Diff stats

7 files+21 added−11 removed

  • other:+21 added−11 removed

7 files+21 added−11 removed

modified:docs/api.rst+1 added-1 removed
287 unmodified lines
288289 It's now also possible to use the ``in`` operator on it to see if an290 attribute is defined and it yields all keys on iteration.291292 As of 1.0 you can use :meth:`pop` and :meth:`setdefault` in the same292 As of 0.11 you can use :meth:`pop` and :meth:`setdefault` in the same293 way you would use them on a dictionary.294295 This is a proxy. See :ref:`notes-on-proxies` for more information.296
601 unmodified lines
modified:docs/cli.rst+1 added-1 removed
5 unmodified lines
6.. versionadded:: 0.1178.. currentmodule:: flask910One of the nice new features in Flask 1.0 is the built-in integration of10One of the nice new features in Flask 0.11 is the built-in integration of11the `click <http://click.pocoo.org/>`_ command line interface. This12enables a wide range of new features for the Flask ecosystem and your own13applications.14
202 unmodified lines
modified:docs/errorhandling.rst+1 added-1 removed
129 unmodified lines
130-----------------131132Even if you get mails, you probably also want to log warnings. It's a133good idea to keep as much information around that might be required to134debug a problem. By default as of Flask 1.0, errors are logged to your134debug a problem. By default as of Flask 0.11, errors are logged to your135webserver's log automatically. Warnings however are not. Please note136that Flask itself will not issue any warnings in the core system, so it's137your responsibility to warn in the code if something seems odd.138
215 unmodified lines
modified:docs/extensiondev.rst+2 added-2 removed
406 unmodified lines
407Flask 0.8 introduced a redirect import system as a compatibility aid for app408developers: Importing ``flask.ext.foo`` would try ``flask_foo`` and409``flaskext.foo`` in that order.410411As of Flask 1.0, most Flask extensions have transitioned to the new naming412schema. The ``flask.ext.foo`` compatibility alias is still in Flask 1.0 but is411As of Flask 0.11, most Flask extensions have transitioned to the new naming412schema. The ``flask.ext.foo`` compatibility alias is still in Flask 0.11 but is413now deprecated -- you should use ``flask_foo``.414415416.. _OAuth extension: http://pythonhosted.org/Flask-OAuth/
2 unmodified lines
modified:docs/server.rst+1 added-1 removed
3 unmodified lines
4==================56.. currentmodule:: flask78Starting with Flask 1.0 there are multiple built-in ways to run a8Starting with Flask 0.11 there are multiple built-in ways to run a9development server. The best one is the :command:`flask` command line utility10but you can also continue using the :meth:`Flask.run` method.1112Command Line
40 unmodified lines
modified:docs/shell.rst+1 added-1 removed
27 unmodified lines
2829Command Line Interface30----------------------3132Starting with Flask 1.0 the recommended way to work with the shell is the32Starting with Flask 0.11 the recommended way to work with the shell is the33``flask shell`` command which does a lot of this automatically for you.34For instance the shell is automatically initialized with a loaded35application context.36
67 unmodified lines
modified:docs/upgrading.rst+14 added-4 removed
19 unmodified lines
20 $ easy_install -U Flask2122.. _upgrading-to-10:2324Version 1.025-----------24Version 0.1125------------26270.11 is an odd release in the Flask release cycle because it was supposed28to be the 1.0 release. However because there was such a long lead time up29to the release we decided to push out a 0.11 release first with some30changes removed to make the transition easier. If you have been tracking31the master branch which was 1.0 you might see some unexpected changes.3233In case you did track the master branch you will notice that `flask --app`34is removed now. You need to use the environment variable to specify an35application.3637Debugging38`````````3930Flask 1.0 removed the ``debug_log_format`` attribute from Flask40Flask 0.11 removed the ``debug_log_format`` attribute from Flask41applications. Instead the new ``LOGGER_HANDLER_POLICY`` configuration can42be used to disable the default log handlers and custom log handlers can be43set up.44
170 unmodified lines
215before, you should catch them with :exc:`RuntimeError` now.216217Additionally the :func:`~flask.send_file` function is now issuing218deprecation warnings if you depend on functionality that will be removed209in Flask 1.0. Previously it was possible to use etags and mimetypes219in Flask 0.11. Previously it was possible to use etags and mimetypes220when file objects were passed. This was unreliable and caused issues221for a few setups. If you get a deprecation warning, make sure to222update your application to work with either filenames there or disable223etag attaching and attach them yourself.
211 unmodified lines