Currently I am still in development and using built in webserver.

On Jan 26, 9:13 pm, "mtnpaul" <[EMAIL PROTECTED]> wrote:
> I believe that reload requires a fairly new version of mod_py in
> apache2.  Which version are you running?
>
> On Jan 26, 7:57 am, "Manish Singh" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have this sample snippet, which works find when run from command line
>
> > def walk_and_execute_all_parse_modules(dir):
> >    collection = []
> >    for root, dirs, files in os.walk(dir):
> >        collection.append( (root, files) )
>
> >     import parse
> >    rootdir = sys.path[0]
> >    wkdir = os.getcwd()
>
> >    try:
> >        for root, files in some_dir_collection:
> >            if 'parse.py' in files:
> >                sys.path[0] = root
> >                os.chdir(root)
> >                reload(parse) ## Culprit line: import is only for side
> > effects
> >    finally:
> >        sys.path[0] = rootdir
> >        os.chdir(wkdir)
>
> > however, when I call this method from a django view, the reload
> > function dosen't work. Any Ideas what might be wrong or where I should
> > look into?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to