OK so I switched from using "from mything import myotherthing" to "import
mything" and either that or some randomness has changed my caching issue. :/
On 9/3/07, Bjorn Tipling <[EMAIL PROTECTED]> wrote:
>
> I'm still having caching issues, even in files that are not the main
> code.py ... I have to continuously ps aux | grep www and then kill both
> lighttpd and code.py. Can I just like go in somewhere and disable caching?
> I don't want caching. I just want it to display what I tell it to. This is
> making development impossible. I have upgraded 0.22 and no help.
>
> Thanks in advance.
>
> On 7/18/07, Bjorn Tipling <[EMAIL PROTECTED]> wrote:
> >
> > Thanks a ton, I'll try this out.
> >
> > On 7/18/07, Zekel <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Even with all the reload stuff, you still have to restart the
> > > development server when you change the main python file. To make this
> > > less painful I did the following:
> > >
> > > 1 - Launch run.py with with a shell script.
> > >
> > > #!/bin/sh
> > > while sleep 0; do
> > > echo "RESTARTING (Press ^C twice to exit.)"
> > > ./run.py
> > > echo "KILLED"
> > > done
> > >
> > >
> > > 2 - Write the pid to file in run.py.
> > >
> > > open('/tmp/webpy.pid', 'w').write(`os.getpid()`)
> > >
> > >
> > > 3 - Bind this shell script to a hotkey.
> > >
> > > cat /tmp/webpy.pid | xargs kill
> > >
> > > I'm on OS X, and I use Spark.app, which is free. I have to wrap it as
> > > an applescript, which looks like this:
> > > do shell script "cat /tmp/webpy.pid | xargs kill"
> > >
> > >
> > > This makes development much more pleasant for me. Another thing you
> > > might have it do is switch to your browser after you press the restart
> > > hotkey. (Bind it in the kill script, not launch script.) Let me know
> > > if anyone finds this useful or has any suggestions.
> > >
> > >
> > >
> > > Developer's Site:
> > > http://www.shadowlab.org/Software/software.php?sign=Sprk
> > > Download: http://www.shadowlab.org/Software/Spark/Spark.dmg.bin
> > >
> > >
> > > > > >
> > >
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---