While deploying the django project i am getting this error of import module what should i do i been trying since two days

May 18 01:52:10 PM return util.import_app(self.app_uri)
May 18 01:52:10 PM File “/opt/render/project/src/.venv/lib/python3.10/site-packages/gunicorn/util.py”, line 359, in import_app
May 18 01:52:10 PM mod = importlib.import_module(module)
May 18 01:52:10 PM File “/opt/render/project/python/Python-3.10.6/lib/python3.10/importlib/init.py”, line 126, in import_module
May 18 01:52:10 PM return _bootstrap._gcd_import(name[level:], package, level)
May 18 01:52:10 PM File “”, line 1050, in _gcd_import
May 18 01:52:10 PM File “”, line 1027, in _find_and_load
May 18 01:52:10 PM File “”, line 1004, in _find_and_load_unlocked
May 18 01:52:10 PM ModuleNotFoundError: No module named ‘app’

Hi,

I assume you’re seeing that when running gunicorn. The wsgi_app application path is probably not correct for your project sturcture. See the gunicorn docs: https://docs.gunicorn.org/en/stable/settings.html#wsgi-app

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.