If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    rochacbruno  12 years ago

    Have you touched the routes.py file? 

     

    please share a bit of your routes.py and also you lighttpd config

    replies (1)
    • offray 12 years ago

      Hey Bruno! As always getting superb community support from you in web2py related matters. And yes the problem was related with my lighttpd config file. I have to change this:

      #################

      Enabling other urls according to previous defaults

      "(^/portalweb.*)$" => "/handler_web2py.fcgi$1", "(^/ubakye.*)$" => "/handler_web2py.fcgi$1", "(^/hackbo.*)$" => "/handler_web2py.fcgi$1", "(^/admin.*)$" => "/handler_web2py.fcgi$1", "(^/examples.*)$" => "/handler_web2py.fcgi$1", "(^/welcome.*)$" => "/handler_web2py.fcgi$1", "(^|/.*)$" => "/handler_web2py.fcgi/portalweb/default/$1", #################

      adding a new line like the following for my intended site:

      "(^/edu*)$" => "/handler_web2py.fcgi$1",

      just between the "welcome" route and the final line.

      Thanks :-)

Commented on:

Hi,

 

Recently I moved and app from my laptop to the webserver by using scp and then I made the proper permissions change. It went fine but for some reason after that I can't create new apps at the begining. Folowing some instructions after a web search I stoped lighttpd, stoped web2py, restarted manually and changed the permissions again. Now I can create and delete new apps, and always get a proper work with the "old ones", but anytime that I try to see a view in a new app I get the message:

 

invalid function (default/<appname>)

 

I dont know why suddenly I get this behavior with all new apps. Working locally all behaves normally, but on my server I cant get the proper behavior. Any advice would be appreciated, as always.


Hosting graciously provided by:
Python Anywhere