Forums

new web not working

Hi. My webpage was in Flask, and was running fine. I deleted one in Flask and I uploaded my django project, but it does not work and I get message: Something went wrong :-( etc. I amended WSGI configuration file but it doesn't work. Any ideas?

What errors do you see in your logs? (link to logs are available on the "Web" page on PythonAnywhere).

2022-04-12 00:27:32,276: Error running WSGI application 2022-04-12 00:27:32,276: ModuleNotFoundError: No module named 'mysite.settings' 2022-04-12 00:27:32,277: File "/var/www/www_convert-anything_com_wsgi.py", line 16, in <module> 2022-04-12 00:27:32,277: application = get_wsgi_application() 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-04-12 00:27:32,277: django.setup(set_prefix=False) 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/init.py", line 19, in setup 2022-04-12 00:27:32,277: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 79, in getattr 2022-04-12 00:27:32,278: self._setup(name) 2022-04-12 00:27:32,278: 2022-04-12 00:27:32,278: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 66, in _setup 2022-04-12 00:27:32,278: self._wrapped = Settings(settings_module) 2022-04-12 00:27:32,278: 2022-04-12 00:27:32,278: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 157, in init 2022-04-12 00:27:32,278: mod = importlib.import_module(self.SETTINGS_MODULE) 2022-04-12 00:27:32,278: ******* 2022-04-12 00:27:32,278: If you're seeing an import error and don't know why, 2022-04-12 00:27:32,278: we have a dedicated help page to help you debug: 2022-04-12 00:27:32,278: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2022-04-12 00:27:32,278: ******* 2022-04-12 00:44:26,349: Error running WSGI application 2022-04-12 00:44:26,350: ModuleNotFoundError: No module named 'mysite.settings' 2022-04-12 00:44:26,350: File "/var/www/www_convert-anything_com_wsgi.py", line 16, in <module> 2022-04-12 00:44:26,350: application = get_wsgi_application() 2022-04-12 00:44:26,350: 2022-04-12 00:44:26,350: File "/usr/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-04-12 00:44:26,350: django.setup(set_prefix=False) 2022-04-12 00:44:26,350: 2022-04-12 00:44:26,351: File "/usr/lib/python3.8/site-packages/django/init.py", line 19, in setup 2022-04-12 00:44:26,351: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2022-04-12 00:44:26,351: 2022-04-12 00:44:26,351: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 79, in getattr 2022-04-12 00:44:26,351: self._setup(name) 2022-04-12 00:44:26,351: 2022-04-12 00:44:26,351: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 66, in _setup 2022-04-12 00:44:26,351: self._wrapped = Settings(settings_module) 2022-04-12 00:44:26,351: 2022-04-12 00:44:26,351: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 157, in init 2022-04-12 00:44:26,351: mod = importlib.import_module(self.SETTINGS_MODULE) 2022-04-12 00:44:26,351: ******* 2022-04-12 00:44:26,352: If you're seeing an import error and don't know why, 2022-04-12 00:44:26,352: we have a dedicated help page to help you debug: 2022-04-12 00:44:26,352: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2022-04-12 00:44:26,352: ******* 2022-04-12 00:52:53,397: Error running WSGI application 2022-04-12 00:52:53,398: ModuleNotFoundError: No module named 'mysite.settings' 2022-04-12 00:52:53,398: File "/var/www/www_convert-anything_com_wsgi.py", line 16, in <module> 2022-04-12 00:52:53,398: application = get_wsgi_application() 2022-04-12 00:52:53,398: 2022-04-12 00:52:53,398: File "/usr/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-04-12 00:52:53,398: django.setup(set_prefix=False) 2022-04-12 00:52:53,398: 2022-04-12 00:52:53,398: File "/usr/lib/python3.8/site-packages/django/init.py", line 19, in setup 2022-04-12 00:52:53,399: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2022-04-12 00:52:53,399: 2022-04-12 00:52:53,399: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 79, in getattr 2022-04-12 00:52:53,399: self._setup(name) 2022-04-12 00:52:53,399: 2022-04-12 00:52:53,399: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 66, in _setup 2022-04-12 00:52:53,399: self._wrapped = Settings(settings_module) 2022-04-12 00:52:53,399: 2022-04-12 00:52:53,399: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 157, in init 2022-04-12 00:52:53,399: mod = importlib.import_module(self.SETTINGS_MODULE) 2022-04-12 00:52:53,400: ******* 2022-04-12 00:52:53,400: If you're seeing an import error and don't know why, 2022-04-12 00:52:53,400: we have a dedicated help page to help you debug: 2022-04-12 00:52:53,400: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2022-04-12 00:52:53,400: ******* 2022-04-12 01:01:20,403: Error running WSGI application 2022-04-12 01:01:20,404: ModuleNotFoundError: No module named 'mysite.settings' 2022-04-12 01:01:20,404: File "/var/www/www_convert-anything_com_wsgi.py", line 16, in <module> 2022-04-12 01:01:20,404: application = get_wsgi_application() 2022-04-12 01:01:20,404: 2022-04-12 01:01:20,404: File "/usr/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-04-12 01:01:20,404: django.setup(set_prefix=False) 2022-04-12 01:01:20,404: 2022-04-12 01:01:20,404: File "/usr/lib/python3.8/site-packages/django/init.py", line 19, in setup 2022-04-12 01:01:20,404: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2022-04-12 01:01:20,404: 2022-04-12 01:01:20,405: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 79, in getattr 2022-04-12 01:01:20,405: self._setup(name) 2022-04-12 01:01:20,405: 2022-04-12 01:01:20,405: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 66, in _setup 2022-04-12 01:01:20,405: self._wrapped = Settings(settings_module) 2022-04-12 01:01:20,405: 2022-04-12 01:01:20,405: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 157, in init 2022-04-12 01:01:20,405: mod = importlib.import_module(self.SETTINGS_MODULE)

Blockquote2022-04-12 00:27:32,276: Error running WSGI application 2022-04-12 00:27:32,276: ModuleNotFoundError: No module named 'mysite.settings' 2022-04-12 00:27:32,277: File "/var/www/www_convert-anything_com_wsgi.py", line 16, in <module> 2022-04-12 00:27:32,277: application = get_wsgi_application() 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-04-12 00:27:32,277: django.setup(set_prefix=False) 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/init.py", line 19, in setup 2022-04-12 00:27:32,277: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2022-04-12 00:27:32,277: 2022-04-12 00:27:32,277: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 79, in getattr 2022-04-12 00:27:32,278: self._setup(name) 2022-04-12 00:27:32,278: 2022-04-12 00:27:32,278: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 66, in _setup 2022-04-12 00:27:32,278: self._wrapped = Settings(settings_module) 2022-04-12 00:27:32,278: 2022-04-12 00:27:32,278: File "/usr/lib/python3.8/site-packages/django/conf/init.py", line 157, in init 2022-04-12 00:27:32,278: mod = importlib.import_module(self.SETTINGS_MODULE) Blockquote

If you're seeing an import error and don't know why, we have a dedicated help page to help you debug: https://help.pythonanywhere.com/pages/DebuggingImportError/