title: Django REST Swagger gives 400 Error
body: <p>I'm trying to run Django REST Swagger on (<a href="https://docs.djangoproject.com/en/2.0/intro/tutorial01/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/2.0/intro/tutorial01/</a>) to make sure I understand how it works, before trying to integrate Django REST Swagger into my larger project.</p>
  
  <p>What I've done:
  I took the code from the sample Django project and tried integrating Django REST Swagger.  </p>
  
  <p>In <code>setting.py</code> I added <code>rest_framework_swagger</code> under <code>INSTALLED_APPS</code>. My stuff for static files is as follows:</p>
  
  <pre><code>STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static'),
      os.path.join(BASE_DIR, 'polls/static'),
  )
  
  STATIC_ROOT = '/home/tengelbrecht/Documents/ENV/django-project'
  STATIC_URL = '/static/'
  </code></pre>
  
  <p>In <code>urls.py</code>, I have:</p>
  
  
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  from rest_framework_swagger.views import get_swagger_view
  
  schema_view = get_swagger_view(title='Polls API')
  
  urlpatterns = [
      url(r'^$', schema_view),
      url(r"^polls/", include("polls.urls")),
      url(r"^admin/", admin.site.urls)
  ]
  </code></pre>
  
  <p>When I run the project on localhost (using <code>python manage.py runserver</code>), The result is as in the attached screenshot. The relevant pieces are the localhost on the left screen, and the terminal on the far right.</p>
  
  <p><a href="https://i.stack.imgur.com/LT9nk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LT9nk.png" alt="enter image description here"></a></p>
  
  <p>Any help would be apreciated. Please comment if you need any more information. I feel that there is a simple fix for this, as in I missed one step of integrating Django REST Swagger into the project, but I currently can't figure it out after hours of Googling.</p>