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