On Mar 30, 2011, at 10:09 PM, VP wrote:
> 
> Where would I issue this function call?  Would it be easier if admin
> is modified so as this call is issued whenever an app is created/
> deleted ?

Massimo has added a reload_routes function to admin in the trunk. Can you give 
it a try? 

admin/default/reload_routes

It's not automatic. I think it's maybe better for it not to be, since depending 
on the configuration it might be necessary to edit routes.py before reloading 
it.



> 
> Thanks.
> 
> On Mar 30, 11:58 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
>> On Mar 30, 2011, at 9:43 PM, VP wrote:
>> 
>> 
>> 
>>> i'm using 1.94.6 with router.  When I created a new application, I
>>> must restart apache in order for the application to get recognized.
>>> Otherwise, its URL is not accessible.
>> 
>> You ought to be able to just reload the routing table, I think: 
>> gluon.rewrite.load(). The router needs to discover the names of your apps in 
>> order to properly do the defaults.
>> 
>> We were talking about adding a command to the admin app to do that, but I 
>> don't think we ever got around to it.


Reply via email to