Forums

ModuleNotFoundError

I don't why I'm getting this error. I've not used any "mysite" module in my project. This is pretty weird which I'm trying to figure out but got stuck now. Please help

2019-09-08 16:53:28,744: Error running WSGI application
2019-09-08 16:53:28,754: ModuleNotFoundError: No module named 'mysite'
2019-09-08 16:53:28,754:   File "/var/www/madariyaprakash_pythonanywhere_com_wsgi.py", line 16, in <module>
2019-09-08 16:53:28,754:     application = get_wsgi_application()
2019-09-08 16:53:28,756: 
2019-09-08 16:53:28,756:   File "/home/madariyaprakash/.virtualenvs/blog_env/lib/python3.6/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2019-09-08 16:53:28,756:     django.setup(set_prefix=False)
2019-09-08 16:53:28,756: 
2019-09-08 16:53:28,757:   File "/home/madariyaprakash/.virtualenvs/blog_env/lib/python3.6/site-packages/django/__init__.py", line 19, in setup
2019-09-08 16:53:28,757:     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2019-09-08 16:53:28,757: 
2019-09-08 16:53:28,757:   File "/home/madariyaprakash/.virtualenvs/blog_env/lib/python3.6/site-packages/django/conf/__init__.py", line 79, in __getattr__
2019-09-08 16:53:28,757:     self._setup(name)
2019-09-08 16:53:28,757: 
2019-09-08 16:53:28,758:   File "/home/madariyaprakash/.virtualenvs/blog_env/lib/python3.6/site-packages/django/conf/__init__.py", line 66, in _setup
2019-09-08 16:53:28,758:     self._wrapped = Settings(settings_module)
2019-09-08 16:53:28,758: 
2019-09-08 16:53:28,758:   File "/home/madariyaprakash/.virtualenvs/blog_env/lib/python3.6/site-packages/django/conf/__init__.py", line 157, in __init__
2019-09-08 16:53:28,758:     mod = importlib.import_module(self.SETTINGS_MODULE)
2019-09-08 16:53:28,758: ***************************************************
2019-09-08 16:53:28,759: If you're seeing an import error and don't know why,
2019-09-08 16:53:28,759: we have a dedicated help page to help you debug: 
2019-09-08 16:53:28,759: https://help.pythonanywhere.com/pages/DebuggingImportError/

It seems to be trying to import SETTINGS_MODULE

It looks like you've fixed that problem now (I'm guessing it was an error in the WSGI file) and now your site has an error connecting the the database on its front page. It says "using password: NO" so I suspect you need to add the password you specified on the "Databases" page to the DATABASES section of your settings.py.