2011/4/24 PhantomXC <[email protected]>: > I've made a simple web.py application that works great until...I want > to throw in a sub application. Looking at the cookbook (http:// > webpy.org/cookbook/subapp) I thought this would be very straight > forward but I can't get it to work for the life of me. > > I've got the following code > > Apache httpd > WSGIScriptAlias / /var/www/webapps/apps/main.py > > > FILE 1 > ------------------------------------------------------ > /var/www/webapps/apps/main.py > > from webpy.dark import * > from model.customer import User > from model.test import get_props() > > #subapps > from apps.dashboard import app_dashboard > > urls = ( > '/', 'index', > '/dashboard', 'app_dashboard' > )
Try using app_dashboard without the quotes. I think it expects the value to be a class if it is specified as a string. Anand -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
