On Mon, Sep 10, 2012 at 7:00 PM, Tomas Schertel <tscher...@gmail.com> 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 webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.