Forums

ModuleNotFoundError: No module named 'django_project'

https://github.com/derrellj/Construction.git

Hello, Can anyone help me with this issue once and for all? I'm trying to deploy a simple site under construction page and keep getting weird errors that make no sense. django_project is the path to where I keep my setting.py but it still says Module not found. I tried to install Django again but still error:

.

Error running WSGI application
2022-12-12 15:44:49,497: ModuleNotFoundError: No module named 'django_project'
2022-12-12 15:44:49,497:   File "/var/www/www_derrell_org_wsgi.py", line 10, in <module>
2022-12-12 15:44:49,497:     application = get_wsgi_application()
2022-12-12 15:44:49,497: 
2022-12-12 15:44:49,498:   File "/home/dnjones/.virtualenvs/Construction-virtualenv/lib/python3.10/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2022-12-12 15:44:49,498:     django.setup(set_prefix=False)
2022-12-12 15:44:49,498: 
2022-12-12 15:44:49,498:   File "/home/dnjones/.virtualenvs/Construction-virtualenv/lib/python3.10/site-packages/django/__init__.py", line 19, in setup
2022-12-12 15:44:49,498:     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2022-12-12 15:44:49,498: 
2022-12-12 15:44:49,499:   File "/home/dnjones/.virtualenvs/Construction-virtualenv/lib/python3.10/site-packages/django/conf/__init__.py", line 92, in __getattr__
2022-12-12 15:44:49,499:     self._setup(name)
2022-12-12 15:44:49,499: 
2022-12-12 15:44:49,499:   File "/home/dnjones/.virtualenvs/Construction-virtualenv/lib/python3.10/site-packages/django/conf/__init__.py", line 79, in _setup
2022-12-12 15:44:49,499:     self._wrapped = Settings(settings_module)
2022-12-12 15:44:49,499: 
2022-12-12 15:44:49,500:   File "/home/dnjones/.virtualenvs/Construction-virtualenv/lib/python3.10/site-packages/django/conf/__init__.py", line 190, in __init__
2022-12-12 15:44:49,500:     mod = importlib.import_module(self.SETTINGS_MODULE)

We have a help page for that.