Deploying github repository to Railway showing error 'ModuleNotFoundError''

I'm trying to deploy my django application to Railway using github but receiving this error from the deployment logs 'ModuleNotFoundError: No module named 'commerce.settings'.

RAILWAY DEPLOYMENT LOG

> File
> "/opt/venv/lib/python3.8/site-packages/django/utils/connection.py",
> line 50, in configure_settings settings = getattr(django_settings,
> self.settings_name) File
> "/opt/venv/lib/python3.8/site-packages/django/conf/__init__.py", line
> 84, in __getattr__ self._setup(name) File
> "/opt/venv/lib/python3.8/site-packages/django/conf/__init__.py", line
> 71, in _setup self._wrapped = Settings(settings_module) File
> "/opt/venv/lib/python3.8/site-packages/django/conf/__init__.py", line
> 179, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE)
> File
> "/nix/store/xq59cyi96kny4v70flfb3ymrzmymk1k1-python3-3.8.13/lib/python3.8/importlib/__init__.py",
> line 127, in import_module return _bootstrap._gcd_import(name[level:],
> package, level) File "<frozen importlib._bootstrap>", line 1014, in
> _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'commerce.settings'

DEPLOYED WEBSITE ERROR Application Error

Is your app correctly listening on $PORT?

View the deployment below to check for errors

Back to Top