Forums

Web app on subdirectory

Hi,

I have recently purchased a domain and added my web app, via pythonanywhere, to it. I would like a separate landing page which I can link to the app from.

Is it possible for the app to be on www.mydomain.com/app?

Thanks!

The app is a dash app by the way

You'll have to check the Dash documentation to see if you can prepend a path to the Dash URLs.

Thanks Glenn, I'll look into it. I was hoping I'd be able to use the wsgi file/something on the python anywhere side

You can try using the Flask DispatcherMiddleware: https://flask.palletsprojects.com/en/2.2.x/patterns/appdispatch/#combining-applications