在pythonanywhere上启用web2py探查器

时间:2016-08-31 16:14:59

标签: profiling web2py pythonanywhere

通过添加-F标志,有一种(看似)简单的方法来生成有关web2py安装的探查器信息。如果可能的话,如何在http://pythonanywhere.com上托管的web2py网站上启用它?

1 个答案:

答案 0 :(得分:2)

In the WSGI file for your web app, you currently have a line:

from gluon.main import wsgibase as application

replace it with:

from gluon.main import appfactory
application = appfactory(profiler_dir="/tmp")

and your web2py app will log profiling data to the /tmp directory.