title: Enabling channels leads to SuspiciousFileOperation at /
body: <p>I noticed that whenever I enable django channels in my code, I get the following error, when I run the server:</p>
  <pre><code>SuspiciousFileOperation at /
  
  The joined path (C:\favicon.ico) is located outside of the base path component.
  
  Error during template rendering
  </code></pre>
  <p>Following changes in settings.py produce the error:</p>
  <pre><code>INSTALLED_APPS = [
      &quot;channels&quot;,
      &quot;django.contrib.admin&quot;,
      &quot;django.contrib.auth&quot;,
      &quot;django.contrib.contenttypes&quot;,
      &quot;django.contrib.sessions&quot;,
      &quot;django.contrib.messages&quot;,
      &quot;django.contrib.staticfiles&quot;,
      &quot;debug_toolbar&quot;,
      &quot;corsheaders&quot;,
      &quot;rest_framework&quot;,
      &quot;rest_framework.authtoken&quot;,
      &quot;core&quot;,
      &quot;drf_yasg2&quot;,
  ]
  
  WSGI_APPLICATION = &quot;app.wsgi.application&quot;
  ASGI_APPLICATION = &quot;app.asgi.application&quot;
  </code></pre>
  <p>Following changes in asgi.py produce the error:</p>
  <pre><code>import os
  
  from channels.routing import ProtocolTypeRouter
  from django.core.asgi import get_asgi_application
  
  os.environ.setdefault(&quot;DJANGO_SETTINGS_MODULE&quot;, &quot;app.settings&quot;)
  
  application = ProtocolTypeRouter({
      &quot;http&quot;: get_asgi_application(),
      # Just HTTP for now. (We can add other protocols later.)
  })
  </code></pre>