I was trying to create a new application on Gondor, and I was getting this error:
Error: Could not import settings 'dt.conf.production' (Is it on sys.path?): No module named dt.conf.production.
I confirmed that the file exists, however, and even did “import production from dt.conf” in a shell successfully.
There were a pair of issues here. Here they are in order of increasing embarrassment.
First, make sure you have the parent directory added to sys.path. Your wsgi.py file should look like this:
Second, and this is the one that killed me, remember that when you call gondor deploy, it’s going to take whatever is in your repository. So, in my case, I had to do
and then do
Hope it helps!