title: Django REST tutorial DEBUG=FALSE error
body: <p>I'm trying to learn to use the django REST framework via the <a href="http://www.django-rest-framework.org/tutorial/1-serialization/" rel="nofollow">tutorial</a>. I've gotten to the section "Testing our first attempt at a Web API".</p>
  
  <p>When I start the server, I get: </p>
  
  <p><code>System check identified no issues (0 silenced).
  June 15, 2015 - 00:34:49
  Django version 1.8, using settings 'tutorial.settings'
  Starting development server at http://127.0.0.1:8000/
  Quit the server with CONTROL-C.
  [15/Jun/2015 00:35:17]"GET /snippets/ HTTP/1.1" 500 74404
  </code></p>
  
  <p>But when I do the next step: <code>/Library/Frameworks/Python.framework/Versions/3.3/bin/http http://127.0.0.1:8000/snippets/
  </code></p>
  
  <p>I get an error which says, among other things: </p>
  
  <pre><code>You're seeing this error because you have &lt;code&gt;DEBUG = True&lt;/code&gt; in your
    Django settings file. Change that to &lt;code&gt;False&lt;/code&gt;, and Django will
    display a standard page generated by the handler for this status code.
  </code></pre>
  
  <p>So, when I change settings.py to say: </p>
  
  <pre><code>DEBUG = False
  ALLOWED_HOSTS = ['*']
  </code></pre>
  
  <p>And then start the server, this happens:
  In the first terminal window: </p>
  
  <pre><code>^$ python3 manage.py runserver
  Performing system checks...
  
  System check identified no issues (0 silenced).
  June 15, 2015 - 00:52:29
  Django version 1.8, using settings 'tutorial.settings'
  Starting development server at http://127.0.0.1:8000/
  Quit the server with CONTROL-C.
  </code></pre>
  
  <p>Then in the second terminal window:</p>
  
  <pre><code>$ /Library/Frameworks/Python.framework/Versions/3.3/bin/http http://127.0.0.1:8000/snippets/
  HTTP/1.0 500 Internal Server Error
  Content-Length: 59
  Content-Type: text/plain
  Date: Mon, 15 Jun 2015 00:52:42 GMT
  Server: WSGIServer/0.2 CPython/3.3.5
  A server error occurred.  Please contact the administrator.
  </code></pre>
  
  <p>And simultaneously, in the first terminal window, a bunch of stuff ending in:</p>
  
  <pre><code>File "/tutorial/tutorial/urls.py", line 9, in &lt;module&gt;
      url(r'^admin/', include(snippets.urls)),
  NameError: name 'snippets' is not defined
  </code></pre>
  
  <p>I don't understand how to get this to work. I see that at least one person has asked a similar question about the "DEBUG=False" setting in the context of their own project, but frankly the answer is over my head. Can someone please explain this in the context of the tutorial?</p>
  
  <p>Many thanks!</p>