![]() In our app.py we loop through all of our app’s pages (in dash.page_registry.values()) and add links for each one. This is an OrderedDict that we can extract information from about our app’s pages. page_registry Pages that include a call to dash.register_page are added to the page registry for our app.For home.py we set the path property because we don’t want the content to be displayed when the user goes to /home, but when the user goes to the homepage: / When we call dash.register_page for home.py, we do set the path property. Similarly, the layout for analytics.py is served when the user goes to /analytics. ![]() So archives.py‘s layout is served when a user goes to /archives. If you don’t set the path property, it is autogenerated based on the module name. For two of the pages, we don’t set a path property.
0 Comments
Leave a Reply. |