I am using Django and trying out New Relic. Is it possible to monitor the Django development server? I can only seem to find help on setting up New Relic with production servers.
Edit
'How to' for future reference:
(I used Django1.4)
Follow this: https://newrelic.com/docs/python/python-agent-installation
As the last step of that guide (Integration with your Application) change your
wsgi.py
file to the following:import newrelic.agent newrelic.agent.initialize('/home/username/path/to/myproject/newrelic-1.9.0.21/newrelic.ini') import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application() application = newrelic.agent.wsgi_application()(application)
Now sign in to your account on the New Relic platform, make a few requests to your development server and see the changes on the the platform. Grats, you made it!
newrelic.agent.initialize('/home/username/path/to/myproject/newrelic-1.9.0.21/newrelic.ini')
newrelic.ini is supposed to be present int the python executable location right? Not sure if this is obsolete now. – Cellanewrelic.agent.initialize()
line was added by Bentley4 after I answered the question, so I can't help with that. If you're stuck, I would ask a new question instead of adding comments to a 6 year old question. – Aeropause