Skip to content
Myr

Added screenshot of the debugger to Flask docs. Flask now runs from the

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

shell again.

authored by Armin Ronacher · committed by Armin Ronacher · parent 6dd92ae · Browse files · 3 files+16 added−2 removed
This commit

State

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

Diff stats

3 files+16 added−2 removed

  • other:+16 added−2 removed

3 files+16 added−2 removed

added:docs/_static/debugger.pngbinary

A binary file, added.

modified:docs/quickstart.rst+7 added
95 unmodified lines
96 debugger still allows the execution of arbitrary code which makes it a97 major security risk and **must never be used on production machines**98 because of that.99100Screenshot of the debugger in action:101102.. image:: _static/debugger.png103 :align: center104 :class: screenshot105 :alt: screenshot of debugger in action106107108Routing109-------110111As you have seen above, the :meth:`~flask.Flask.route` decorator is used
520 unmodified lines
modified:flask.py+9 added-2 removed
151 unmodified lines
152 g=reqctx.g153 )154155156def _get_package_path(name):157 """Returns the path to a package or cwd if that cannot be found."""158 try:159 return os.path.abspath(os.path.dirname(sys.modules[name].__file__))160 except (KeyError, AttributeError):161 return os.getcwd()162163164class Flask(object):165 """The flask object implements a WSGI application and acts as the central166 object. It is passed the name of the module or package of the167 application. Once it is created it will act as a central registry for
52 unmodified lines
220 #: it was set by the constructor.221 self.package_name = package_name222223 #: where is the app root located?216 self.root_path = os.path.abspath(os.path.dirname(217 sys.modules[self.package_name].__file__))224 self.root_path = _get_package_path(self.package_name)225226 #: a dictionary of all view functions registered. The keys will227 #: be function names which are also used to generate URLs and228 #: the values are the function objects themselves.
430 unmodified lines