Thursday, February 14, 2013

NewRelic quick Django setup

pip install newrelic
newrelic-admin generate-config LICENSE-KEY newrelic.ini
# add your key to generated config

NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program python manage.py run_gunicorn

or

NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program python manage.py runserver


No comments: