I've done this, by simply putting the module name in the urls list. For example:
"home", "home", "about", "submodule.about" You just have to make sure you import your sub module first! On Mon, Jul 7, 2014 at 10:15 AM, YaRoKe <[email protected]> wrote: > Hello webpy Community, > > I wonder if there is a way of adding routes "dynamically" to my app. > So I would like to have one folder "subs" which I would like to add > various <subapp>.py files which then should be accessible by the > main app.py automatically. > > Is there a way I could do this? > > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/webpy. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/d/optout.
