Skip to content

Instantly share code, notes, and snippets.

@relekang
Created February 12, 2013 22:18
Show Gist options
  • Save relekang/4773970 to your computer and use it in GitHub Desktop.
Save relekang/4773970 to your computer and use it in GitHub Desktop.
django wsgi.py with new relic intialize
# -*- coding: utf-8 -*-
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
import newrelic.agent
newrelic.agent.initialize(os.path.join(os.path.dirname(os.path.dirname(__file__), 'newrelic.ini')
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
@surfer190
Copy link

Is this still relevant?

@iamsudip
Copy link

iamsudip commented Nov 19, 2016

@surfer190 yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment