Forums

ModuleNotFoundError: No module named 'mysite-master.settings'

Hi everyone!

I've got that error while deploying. Checked out wsgi settings and my module names, there's no any file named 'mysite-master.settings'. Can you help that issue?

Error running WSGI application 2023-01-11 15:42:05,958: ModuleNotFoundError: No module named 'mysite-master.settings' 2023-01-11 15:42:05,958: File "/var/www/libreproject_pythonanywhere_com_wsgi.py", line 23, in <module> 2023-01-11 15:42:05,958: application = get_wsgi_application() 2023-01-11 15:42:05,958: 2023-01-11 15:42:05,958: File "/usr/local/lib/python3.10/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2023-01-11 15:42:05,958: django.setup(set_prefix=False) 2023-01-11 15:42:05,958: 2023-01-11 15:42:05,958: File "/usr/local/lib/python3.10/site-packages/django/init.py", line 19, in setup 2023-01-11 15:42:05,958: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2023-01-11 15:42:05,958: 2023-01-11 15:42:05,959: File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 87, in getattr 2023-01-11 15:42:05,959: self._setup(name) 2023-01-11 15:42:05,959: 2023-01-11 15:42:05,959: File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 74, in _setup 2023-01-11 15:42:05,959: self._wrapped = Settings(settings_module) 2023-01-11 15:42:05,959: 2023-01-11 15:42:05,959: File "/usr/local/lib/python3.10/site-packages/django/conf/init.py", line 183, in init 2023-01-11 15:42:05,959: mod = importlib.import_module(self.SETTINGS_MODULE)

If your code does not match that the error says, then you need to reload the web app from your web app configuration page. You need to do that every time you make a change to the code.

thank you for your interest. Solved the problem.

Great!