Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
934 views
in Technique[技术] by (71.8m points)

routes - How to organize an app portal with Flask?

I am working on an apps portal for a group of users. Users will connect to the portal on the 'root' url '/' (a first Flask app only for routing) and I would like to display the label of the different apps and when somebody clicks to an app, it will popup the route '/app1/' for instance. I've made a Flask app for each app, and apps are under a same folder named 'root' like this:

root
  |
  |____app1
  |____app2
  |
  |____appN

My question is: How can I route users from the main app 'root' and url '/' to the dedicated url '/app1' and fire different application? How can I manage my app = Flask(name) for each app?

I am lost while I have my apps ready ...

Thanks for your help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...