title: django The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
body: <p>I'm deploying a Django application on heroku.</p>
  
  <p>In my settings module, I have configured to host static files like</p>
  
  <pre><code>STATIC_ROOT = os.path.join(BASE_DIR, 'static_my_project')
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = [
      os.path.join(BASE_DIR, 'static_my_project')
  ]
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static_cdn', 'media_root')
  </code></pre>
  
  <p>and <code>urls.py</code></p>
  
  <pre><code>urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
  urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  </code></pre>
  
  <p><strong>But on deployment to heroku, it gives error as</strong></p>
  
  <pre><code>SystemCheckError: System check identified some issues:
  
  ERRORS:
  ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting.
  </code></pre>