title: Exception in thread django-main-thread, SECRET_KEY already installed
body: <p>I cloned my own repository in GitHub and after installing the necessary dependencies I tried to run my project with:</p>
  <pre><code>python3 manage.py runserver
  </code></pre>
  <p>But when I do that, I get this exception in the thread and I can't see any particular error</p>
  <pre><code>Exception in thread django-main-thread:
  Traceback (most recent call last):
    File &quot;/home/gitpod/.pyenv/versions/3.8.11/lib/python3.8/threading.py&quot;, line 932, in _bootstrap_inner
      self.run()
    File &quot;/home/gitpod/.pyenv/versions/3.8.11/lib/python3.8/threading.py&quot;, line 870, in run
      self._target(*self._args, **self._kwargs)
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/utils/autoreload.py&quot;, line 64, in wrapper
      fn(*args, **kwargs)
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/core/management/commands/runserver.py&quot;, line 110, in inner_run
      autoreload.raise_last_exception()
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/utils/autoreload.py&quot;, line 87, in raise_last_exception
      raise _exception[1]
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 375, in execute
      autoreload.check_errors(django.setup)()
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/utils/autoreload.py&quot;, line 64, in wrapper
      fn(*args, **kwargs)
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/__init__.py&quot;, line 24, in setup
      apps.populate(settings.INSTALLED_APPS)
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/apps/registry.py&quot;, line 122, in populate
      app_config.ready()
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/admin/apps.py&quot;, line 27, in ready
      self.module.autodiscover()
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/admin/__init__.py&quot;, line 24, in autodiscover
      autodiscover_modules('admin', register_to=site)
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/utils/module_loading.py&quot;, line 47, in autodiscover_modules
      import_module('%s.%s' % (app_config.name, module_to_search))
    File &quot;/home/gitpod/.pyenv/versions/3.8.11/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 843, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/auth/admin.py&quot;, line 6, in &lt;module&gt;
      from django.contrib.auth.forms import (
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/auth/forms.py&quot;, line 11, in &lt;module&gt;
      from django.contrib.auth.tokens import default_token_generator
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/auth/tokens.py&quot;, line 117, in &lt;module&gt;
      default_token_generator = PasswordResetTokenGenerator()
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/contrib/auth/tokens.py&quot;, line 18, in __init__
      self.secret = self.secret or settings.SECRET_KEY
    File &quot;/workspace/.pip-modules/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 90, in __getattr__
      raise ImproperlyConfigured(&quot;The SECRET_KEY setting must not be empty.&quot;)
  django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
  
  </code></pre>