On 07-Jan-08, at 3:47 PM, Alex K wrote:

>
> Hi Guys,
>
> I have just installed webpy 0.23, everything works fine but the
> reloader basically only reloads the main file but not all my other
> modules. Reverting back to 0.2 and the reloader works just fine.
>
> Here is a sample of my application:
>
> main_site.py:
>
> #!/usr/bin/env python
> import os, web, urllib
>
> os.chdir("/projects/scripts/chiefmall/web/")
> urls = (
>    '/?', 'search',
>    /admin/?', 'list_categories'
> }
>


> from admin import *

This is the culprit.
web.py is always taking the list_categories from main_site.py, not  
from admin.py

Change your urls like this and remove import *, than it will work fine.

urls = (
   "/?", "search",
   "/admin/?", "admin.list_categoties"
)





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to