Forums

Error running WSGI application

I did everything to resolve it but all in vain. I completely followed https://help.pythonanywhere.com/pages/DebuggingImportError . Everything seem to be okay, but I am constantly getting the same error from the past two days. Python version with the virtual environment is also fine. Please somebody help.

Error running WSGI application

ImportError: No module named 'myblog.settings'

File "/var/www/www_sagepoudel_com_wsgi.py", line 89, in <module>

application = get_wsgi_application()

File "/home/pdlsaroj22/.virtualenvs/sage-venv/lib/python3.5/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application 2017-09-24 08:26:11,688: django.setup(set_prefix=False) 2017-09-24 08:26:11,688: File "/home/pdlsaroj22/.virtualenvs/sage-venv/lib/python3.5/site-packages/django/init.py", line 22, in setup 2017-09-24 08:26:11,689: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) 2017-09-24 08:26:11,689: 2017-09-24 08:26:11,689: File "/home/pdlsaroj22/.virtualenvs/sage-venv/lib/python3.5/site-packages/django/conf/init.py", line 56, in getattr 2017-09-24 08:26:11,689: self._setup(name) 2017-09-24 08:26:11,689: 2017-09-24 08:26:11,689: File "/home/pdlsaroj22/.virtualenvs/sage-venv/lib/python3.5/site-packages/django/conf/init.py", line 41, in _setup 2017-09-24 08:26:11,689: self._wrapped = Settings(settings_module) 2017-09-24 08:26:11,689: 2017-09-24 08:26:11,690: File "/home/pdlsaroj22/.virtualenvs/sage-venv/lib/python3.5/site-packages/django/conf/init.py", line 110, in init 2017-09-24 08:26:11,690: mod = importlib.import_module(self.SETTINGS_MODULE) 2017-09-24 08:26:11,690: ******* 2017-09-24 08:26:11,690: If you're seeing an import error and don't know why, 2017-09-24 08:26:11,690: we have a dedicated help page to help you debug: 2017-09-24 08:26:11,690: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2017-09-24 08:26:11,690: *******

No you may have some of your modules aliased. What is the folder structure of your app and what is your sys.path just before the line where you get the exception?