Everything seems to get installed correctly, it says the build was successful. Then after it says gunicorn starts, it all falls apart. Here are my error logs: Jun 25 12:46:07 PM ==> Starting service with ‘gunicorn TwitterCloneDjango.wsgi’
Jun 25 12:46:09 PM Traceback (most recent call last):
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/bin/gunicorn”, line 8, in
Jun 25 12:46:09 PM sys.exit(run())
Jun 25 12:46:09 PM ^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py”, line 67, in run
Jun 25 12:46:09 PM WSGIApplication(“%(prog)s [OPTIONS] [APP_MODULE]”).run()
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/base.py”, line 231, in run
Jun 25 12:46:09 PM super().run()
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/base.py”, line 72, in run
Jun 25 12:46:09 PM Arbiter(self).run()
Jun 25 12:46:09 PM ^^^^^^^^^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/arbiter.py”, line 58, in init
Jun 25 12:46:09 PM self.setup(app)
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/arbiter.py”, line 118, in setup
Jun 25 12:46:09 PM self.app.wsgi()
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/base.py”, line 67, in wsgi
Jun 25 12:46:09 PM self.callable = self.load()
Jun 25 12:46:09 PM ^^^^^^^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
Jun 25 12:46:09 PM return self.load_wsgiapp()
Jun 25 12:46:09 PM ^^^^^^^^^^^^^^^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
Jun 25 12:46:09 PM return util.import_app(self.app_uri)
Jun 25 12:46:09 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/src/.venv/lib/python3.11/site-packages/gunicorn/util.py”, line 359, in import_app
Jun 25 12:46:09 PM mod = importlib.import_module(module)
Jun 25 12:46:09 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 25 12:46:09 PM File “/opt/render/project/python/Python-3.11.3/lib/python3.11/importlib/init.py”, line 126, in import_module
Jun 25 12:46:09 PM return _bootstrap._gcd_import(name[level:], package, level)
Jun 25 12:46:09 PM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 25 12:46:09 PM File “”, line 1206, in _gcd_import
Jun 25 12:46:09 PM File “”, line 1178, in _find_and_load
Jun 25 12:46:09 PM File “”, line 1128, in _find_and_load_unlocked
Jun 25 12:46:09 PM File “”, line 241, in _call_with_frames_removed
Jun 25 12:46:09 PM File “”, line 1206, in _gcd_import
Jun 25 12:46:09 PM File “”, line 1178, in _find_and_load
Jun 25 12:46:09 PM File “”, line 1142, in _find_and_load_unlocked
Jun 25 12:46:09 PM ModuleNotFoundError: No module named ‘TwitterCloneDjango’
Jun 25 12:46:23 PM ==> Using Node version 14.17.0 (default)
Jun 25 12:46:23 PM ==> Docs on specifying a Node version: Specifying a Node Version | Render
Gunicorn is looking for something that doesn’t exist. My application works fine on my local machine.
This is what my folder structure looks like:
If someone could point me in the right direction of how to fix this… I’d be super happy!