Skip to content
Myr

Merge pull request #1912 from pallets/revert-1811-iss1809_register_blueprint_docs

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

Revert "Addressing Issue 1809"

authored by Markus Unterwaditzer · committed by GitHub · parents 433c561, 5c12721 · Browse files · 1 file+1 added−16 removed
This commit

State

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

Diff stats

1 file+1 added−16 removed

  • other:+1 added−16 removed

1 file+1 added−16 removed

modified:flask/app.py+1 added-16 removed
933 unmodified lines
934 return self.session_interface.make_null_session(self)935936 @setupmethod937 def register_blueprint(self, blueprint, **options):938 """Register a blueprint on the application. For information about 939 blueprints head over to :ref:`blueprints`.938 """Registers a blueprint on the application.939941 The blueprint name is passed in as the first argument. 942 Options are passed as additional keyword arguments and forwarded to 943 `blueprints` in an "options" dictionary.944945 :param subdomain: set a subdomain for the blueprint946 :param url_prefix: set the prefix for all URLs defined on the blueprint.947 ``(url_prefix='/<lang code>')``948 :param url_defaults: a dictionary with URL defaults that is added to 949 each and every URL defined with this blueprint950 :param static_folder: add a static folder to urls in this blueprint951 :param static_url_path: add a static url path to urls in this blueprint952 :param template_folder: set an alternate template folder953 :param root_path: set an alternate root path for this blueprint954940 .. versionadded:: 0.7941 """942 first_registration = False943 if blueprint.name in self.blueprints:
1048 unmodified lines