Python agent and Web2py web framework

Web2py is an open source framework for creating web-based Python applications. You can integrate New Relic with your Web2py app to monitor your app's performance. For general install procedures, see Install New Relic for Python.

Integrate with Web2py

Choose the Web2py set-up you use from the list below for more information:

Runweb2py command

If you run your web application using the runweb2py command, use the following command:

newrelic-admin is a script that wraps your application startup, so that New Relic can monitor your application's major functions. For more on running the wrapper script, see Running the wrapper script.

Apache/mod_wsgi

When using Apache/mod_wsgi, you must manually insert code in the WSGI script file you are using in order to initialize the New Relic Python agent. For more info, see the New Relic mod_wsgi documentation.