title: ModuleNotFoundError: No module named 'config'
body: <p>I know there is a similar question to this:</p>
  
  <p><a href="https://stackoverflow.com/questions/50836060/django-admin-startproject-results-in-modulenotfounderror-no-module-named-conf">django-admin startproject results in &quot;ModuleNotFoundError: No module named &#39;config&#39;&quot;</a></p>
  
  <p>But the answer does not worked for me.</p>
  
  <p>I have a VPS running Ubuntu (18.04) + Apache (2.4.29).</p>
  
  <p>The applications runs well by this command line:</p>
  
  <p><code>python3 manage.py runserver 0.0.0.0:8000 --settings=config.settings.production</code></p>
  
  <p>My Apache conf look like this:</p>
  
  <pre><code>WSGIDaemonProcess myapp python-home=/home/my_repository/ENV
  
  WSGIProcessGroup myapp
  WSGIApplicationGroup %{GLOBAL}
  
  WSGIScriptAlias / /home/my_repository/config/wsgi.py
  
  &lt;Directory /home/my_repository/&gt;
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I am seeing this error on the Apache.log:</p>
  
  <pre><code>mod_wsgi (pid=32745): Target WSGI script '/home/my_repository/config/wsgi.py' cannot be loaded as Python module.
  mod_wsgi (pid=32745): Exception occurred processing WSGI script '/home/my_repository/config/wsgi.py'.
  Traceback (most recent call last):
    File "/home/my_repository/config/wsgi.py", line 39, in &lt;module&gt;
      application = get_wsgi_application()
    File "/usr/local/lib/python3.6/dist-packages/django/core/wsgi.py", line 12, in get_wsgi_application
      django.setup(set_prefix=False)
    File "/usr/local/lib/python3.6/dist-packages/django/__init__.py", line 19, in setup
      configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 76, in __getattr__
      self._setup(name)
    File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 63, in _setup
      self._wrapped = Settings(settings_module)
    File "/usr/local/lib/python3.6/dist-packages/django/conf/__init__.py", line 142, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 994, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 941, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "&lt;frozen importlib._bootstrap&gt;", line 994, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 941, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "&lt;frozen importlib._bootstrap&gt;", line 994, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 971, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 953, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'config'
  </code></pre>
  
  <p>I also confirmed what versions and vars my <code>wsgi.py</code> is configured with:</p>
  
  <pre><code>DJANGO_SETTINGS_MODULE: config.settings.production
  Python version: 3.6.9
  Django version: 3.0.3
  </code></pre>
  
  <p>I hope anyone can help me. I am trying to run bootcamp for almost a month now </p>