title: Apache2 Django NameError: name "TypeError" is not defined
body: <p>I am trying to run a django application on VPS via apache2, but I get the following in the website-error file, also 400(Bad Request):</p>
  <pre><code>Exception ignored in: &lt;function Local.__del__ at 0x7f47273f48b0&gt;
  Traceback (most recent call last):
    File &quot;/usr/local/lib/python3.8/dist-packages/asgiref/local.py&quot;, line 96, in __del__
  NameError: name 'TypeError' is not defined
  </code></pre>
  <p>I successfully ran a simple website that was made with &quot;django-admin startproject&quot; and could be viewed, but uploading project, made with the following skeleton, produces this error: <a href="https://django-project-skeleton.readthedocs.io/en/latest/apache2_vhost.html" rel="noreferrer">https://django-project-skeleton.readthedocs.io/en/latest/apache2_vhost.html</a></p>
  <p>I have tried including the python site-packages in the WSGIDaemon and by exluding them it produces the same effect.</p>
  <p>In addition to this, I have also added:</p>
  <pre><code>&lt;Directory /var/www/mysite/mysite&gt;
          &lt;Files wsgi.py&gt;
              Require all granted
          &lt;/Files&gt;
  &lt;/Directory&gt;
  </code></pre>
  <p>But again, no change</p>