That is how I do it as well, but I want to have a more dynamic version of 
this which *automatically* detects those modules in a folder and 
adds them to the URLs List. 

Am Montag, 7. Juli 2014 16:31:06 UTC+2 schrieb NSC:
>
> 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] <javascript:>
> > 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] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> 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.

Reply via email to