title: Setting up New Relic for Django development server
body: <p>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.</p>
  
  <h2>Edit</h2>
  
  <p>'How to' for future reference:</p>
  
  <p>(I used Django1.4)</p>
  
  <ol>
  <li><p>Follow this:
  <a href="https://newrelic.com/docs/python/python-agent-installation">https://newrelic.com/docs/python/python-agent-installation</a></p></li>
  <li><p>As the last step of that guide (<em>Integration with your Application</em>) change your <code>wsgi.py</code> file to the following: </p>
  
  <pre><code>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)
  </code></pre></li>
  </ol>
  
  <p>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!</p>