Forums

WSGI settings not found but nothing changed

I'm getting ModuleNotFoundError: No module named 'MODULENAME.settings'

But the real kicker is that it was working perfectly fine before, I just pushed a commit that updated nothing related to settings whatsoever and it now says it can't find the module, and when I reverted those changes it still is happening.

This has happened before and I had to delete the whole web app, put in all the exact same settings, and it started working again, but that's a serious pain in the ass and I would hope that this could stop happening? The settings files are all still there, nothing has changed in the WSGI file, it's just is failing for no good reason seemingly.

Nevermind, it was changing the "working directory" or the "source code" directory that threw everything out of whack

okay, thanks for letting us know!