Multiple web2py apps/domains on pythonanywhere

82 views
Skip to first unread message

Joe

unread,
Jul 27, 2015, 9:21:42 AM7/27/15
to web2py-users
What is the best way to host multiple web2py apps/domains on pythonanywhere?

If anyone has any experience with this, I would appreciate if you could let me know the best way to do this.
I asked this question on the pythonanywhere support forum, they suggested to post the question here. They said that they are not web2py experts.

Joe

unread,
Jul 28, 2015, 3:36:14 AM7/28/15
to web2py-users, degrou...@gmail.com
It took a while but I figured it out.

JorgeH

unread,
Jul 28, 2015, 5:48:29 AM7/28/15
to web2py-users, degrou...@gmail.com
so??

How did you manage to do it?


Can you explain to us? I'm interested too.

Joe

unread,
Aug 4, 2015, 6:18:25 PM8/4/15
to web2py-users, degrou...@gmail.com
Bellow is the last two post from the thread I started on Pythonanywhere forum regarding this issue:

I am not sure exactly how I finally set this up and I can't replicate the process unless I delete the app and start over which I am not going to do now.

This is what I think I did:

First, I chose the "manual configuration" then edited my WSGI file as instructed here: https://www.pythonanywhere.com/wiki/MultipleDomainsWeb2py

After this it was impossible to continue in any way. In the WSGI file I changed the folder name, adding the new folder name that I wanted to set up for the new app but there was no way to actually create the folder at that point. So after a while I deleted the app, there was nothing else I could do. There is probably a way to start setting up the folder structure manually but that doesn't seem like a good idea to me.

After the app was deleted, the WSGI file was not deleted so I started to "add a new app" again but this time I did not choose "manual configuration", and then, it worked. The folder was created, everything seems to be working.

What did I miss? It seems to be working fine this way. I'd appreciate any feedback or advise.

Beloved premium user kakasFDD310 | 34 posts | Aug. 4, 2015, 3:37 a.m. | permalink

Ah not sure if there is a misunderstanding here. To clarify:

  • to setup multiple web2py websites, and to set up the new website from scratch, you can just do create new (non-custom) from our web tab.
  • to get multiple domains to point to the same web2py code, then you should proceed as mentioned in our wiki.
Staff conrad | 297 posts | PythonAnywhere staff | Aug. 4, 2015, 2:31 p.m. | permalink
Reply all
Reply to author
Forward
0 new messages