![]() New in version 0.7: The static_url_path, static_folder, and template_folder ![]() In the _init_.py file of your package like this: Usually you create a Flask instance in your main module or py file).įor more information about resource loading, see open_resource(). Package parameter resolves to an actual python package (a folder withĪn _init_.py file inside) or a standard module (just a. Package or the folder the module is contained in depending on if the The name of the package is used to resolve resources from inside the The view functions, the URL rules, template configuration and much more. Once it is created it will act as a central registry for ![]() It is passed the name of the module or package of theĪpplication. The flask object implements a WSGI application and acts as the central Flask ( import_name, static_url_path = None, static_folder = 'static', static_host = None, host_matching = False, subdomain_matching = False, template_folder = 'templates', instance_path = None, instance_relative_config = False, root_path = None ) ¶ Important right here and provide links to the canonical documentation. Parts where Flask depends on external libraries, we document the most This part of the documentation covers all the interfaces of Flask.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |