On Mon, Sep 10, 2012 at 7:00 PM, Tomas Schertel <[email protected]> wrote:
> I have this on my application:
>
> if __name__ == "__main__":
> my_app = web.application(urls, globals(), autoreload=True)
> web.http.profiler(my_app)
> my_app.run()
>
> But nothing has changed in "python my_app.py" output.
> Am I doing it right?
I think you have to do:
if __name__ == "__main__":
my_app = web.application(urls, globals(), autoreload=True)
my_app.run(web.profiler)
Or:
if __name__ == "__main__":
my_app = web.application(urls, globals(), autoreload=True)
my_app = web.profiler(my_app)
my_app.run()
Note: web.profiler is same as web.http.profiler.
Anand
--
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.