Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot support to st-pages #19

Open
dqaudithillstone opened this issue Jun 6, 2023 · 1 comment
Open

cannot support to st-pages #19

dqaudithillstone opened this issue Jun 6, 2023 · 1 comment

Comments

@dqaudithillstone
Copy link

this is the st-pages url" ’https://pypi.org/project/st-pages/

i create a mutipage created by st-pages package.
but i fail .

  1. show error :The page that you have requested does not seem to exist. Running the app's main page.
    and i wish the logout button wll show on the mutipage's main page.
  2. i wish the login username and the logout button will show on main.py pages : How can i do it? thanks

if LOGGED_IN == True:
st.markdown("Your Streamlit Application Begins here!")
main_app.main()

the code of the main_app.py is :

import streamlit as st
from st_pages import Page, Section,show_pages, add_page_title
def main():
show_pages(
[
Page("main_app.py",name="主页",icon="🏠"),
Section(name="表格相关处理技术",icon="🏠"),
Page("menuPages/table_linked.py", "主从表格",icon="💪"),
Page("menuPages/second.py", "样例2",icon="💪"),
Section(name="项目相关",icon="🏠"),
Page("menuPages/xm.py", "项目",icon="💪"),
Page("menuPages/tax.py", "税率",icon="💪"),
# in_section=False用明确申明,该页不属于上面的菜单section子项目
Page("menuPages/test.py",name="最后页面",icon="🏠",in_section=False),
]
)

if name == 'main':
main()
pass

@daiyu0602
Copy link

hello!Have you fixed this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants