title: How do you configure a Sentry raven client in a development environment to not send exceptions and still work?
body: <p>We are running a Django server and using Sentry to capture exceptions. When we configure Sentry we add <code>RAVEN_CONFIG</code> our different <code>settings.py</code> files:</p>
  
  <pre><code>INSTALLED_APPS = (
      'raven.contrib.django.raven_compat'
  )
  
  RAVEN_CONFIG = {
      'dsn': 'https://*****@app.getsentry.com/PORT_NUMBER',
  }
  </code></pre>
  
  <p>We read <a href="https://github.com/getsentry/raven-python/issues/538" rel="noreferrer">here</a> that we can just use an empty string <code>DSN</code> property. Though when we run <code>python manage.py raven test</code> as depicted <a href="https://docs.getsentry.com/hosted/clients/python/integrations/django/" rel="noreferrer">here</a> we get:</p>
  
  <pre><code>raven.exceptions.InvalidDsn: Unsupported Sentry DSN scheme:  ()
  </code></pre>
  
  <p>The best solution would be that we could always use a Raven client and the settings file would define whether exceptions are sent or not.</p>
  
  <p>Another requirement is that we would like to use the <code>Client</code> module and capture exceptions. For this <a href="https://docs.getsentry.com/hosted/clients/python/" rel="noreferrer">we have to set</a> some <code>DSN</code> value:</p>
  
  <pre><code>from raven import Client
  client = Client('https://&lt;key&gt;:&lt;secret&gt;@app.getsentry.com/&lt;project&gt;')
  </code></pre>
  
  <p>So not setting a <code>DSN</code> value isn't possible</p>