Forums

Wordpress, web2py app and PythonAnywhere

I'd like to integrate a web2py application into my wordpress website under the same domain name. Would PythonAnywhere host them together?

that probably wouldn't be possible.

I have the same needing. My idea is to register an hosting space with Apache and Linux where install WordPress (this is easy) and point the mysql database on PythonAnywhere via SSH (this is the difficult part).

I can't find an hosting that let users point an external database, so I guess if it is possible.

You could perhaps do it using a VPS -- you could install Apache/Wordpress there, and then run an SSH tunnel using the command at the bottom of this help page. It would require a paid PythonAnywhere account for the SSH, though -- and you'd need to know how to set up the SSH tunnel on the VPS so that it would run constantly and be restarted if the server was rebooted, which would require some Linux sysadmin knowledge.

I have a kind of similar problem. We have our app on python anywhere but we don't want it to share it directly. Is there any option to share it through IFrame on WordPress website? While doing so it shows blocked by X-Frame options. The IFrame will go here

Is your web app build with Django? As per recent changes in Django https://docs.djangoproject.com/en/3.0/ref/clickjacking/#setting-x-frame-options-for-all-responses x-frame-options are set to deny by default.