Home » Python » python – Middleware Flask to encapsulate webpage to a directory-Exceptionshub

python – Middleware Flask to encapsulate webpage to a directory-Exceptionshub

Posted by: admin March 1, 2020 Leave a comment

Questions:

I have a Flask application which I want to upload to a server. The server has the structure www.mypage.com/newDirectory. My question is: how can I deploy my web app in order to introduce a middleware including newDirectory? I have already seen that without this middleware, the web is unable to find the correct paths of the static elements.

PS: I know that this is possible, as shown here, but I do not really get the actual implementation in order to encapsulate my whole page to /newDirectory.

How to&Answers: