When I create a web2py app from the console on pythonanywhere, it creates an app named welcome.
I cloned the git repository named eden under web2py/applications where it is expected.
So the dir tree is as follows.
-rw-r--r-- 1 akachhy registered_users 1 May 2 20:14 init.py
-rw-r--r-- 1 akachhy registered_users 111 May 2 20:15 init.pyc
drwxr-xr-x 14 akachhy registered_users 4096 May 2 20:44 admin
drwxrwxr-x 13 akachhy registered_users 4096 May 2 20:34 eden
drwxr-xr-x 9 akachhy registered_users 4096 May 2 20:14 examples
drwxr-xr-x 14 akachhy registered_users 4096 May 2 20:15 welcome
Seems that pythonanywhere starts the app named welcome, by specifying its index action in the settings.cfg file as I indicated in the previous message. The WSGI file (content below)does not seem to specify any particular app (welcome or admin) to be started.
import os
import sys
add your project directory to the sys.path
project_home = u'/home/akachhy/web2py/'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
sys.stdout = sys.stderr
os.chdir(project_home)
serve web2py via WSGI handler
from gluon.main import wsgibase as application
I edited the settings.cfg file as follows.
welcome = welcome/models/db.py,welcome/controllers/default.py,welcome/views/default/index.html
welcome = eden/models/000_config.py,eden/controllers/default.py,eden/views/default/index.html
but after reloading the app from the console I still see the pages from welcome app.
You visited the url /welcome/default/index
So, I need to know what to update to stop loading welcome and start with eden under web2py.