Skip to content
Myr

Addressing Issue 1809 (#1811)

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

document kwargs for Flask.register_blueprint

authored by Thomas Sanjurjo · committed by David Lord · parent 883cb7c · Browse files · 1 file+16 added−1 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+16 added−1 removed

  • other:+16 added−1 removed

1 file+16 added−1 removed

modified:flask/app.py+16 added-1 removed
932 unmodified lines
933 return self.session_interface.make_null_session(self)934935 @setupmethod936 def register_blueprint(self, blueprint, **options):937 """Registers a blueprint on the application.937 """Register a blueprint on the application. For information about 938 blueprints head over to :ref:`blueprints`.939940 The blueprint name is passed in as the first argument. 941 Options are passed as additional keyword arguments and forwarded to 942 `blueprints` in an "options" dictionary.943944 :param subdomain: set a subdomain for the blueprint945 :param url_prefix: set the prefix for all URLs defined on the blueprint.946 ``(url_prefix='/<lang code>')``947 :param url_defaults: a dictionary with URL defaults that is added to 948 each and every URL defined with this blueprint949 :param static_folder: add a static folder to urls in this blueprint950 :param static_url_path: add a static url path to urls in this blueprint951 :param template_folder: set an alternate template folder952 :param root_path: set an alternate root path for this blueprint953954 .. versionadded:: 0.7955 """956 first_registration = False957 if blueprint.name in self.blueprints:
1048 unmodified lines