title: Django cors headers and server error
body: <p>I'm trying to use django-cors-headers to add CORs to my server, but when I load the page I receive this error on the server.</p>
  
  <pre><code>ImproperlyConfigured: Error importing module corsheaders.middleware.CorsMiddlewaredjango.middleware.common: "No module named CorsMiddlewaredjango.middleware.common"
  </code></pre>
  
  <p>I've installed the cors-header app using pip:</p>
  
  <pre><code>pip install django-cors-headers
  </code></pre>
  
  <p>And my <strong>settings.py</strong> file is configured this way:</p>
  
  <pre><code>INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'social.apps.django_app.default',
      'corsheaders',
      'dashboard',
  )
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'corsheaders.middleware.CorsMiddleware'
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  )
  CORS_ORIGIN_ALLOW_ALL = True
  </code></pre>
  
  <p>I'm using <strong>python 2.7</strong> version.</p>