[Answered ]-Django ImportError when attempting to use a setting in a settings directory

1👍

It seems like the local.py module imports from base.py, you probably have something like:

from base import *

at the top of your local settings.

But the base.py settings module is not there, hence the error.

1👍

It looks like that django is not finding “mysite.settings.local” package because it is not in your PYTHONPATH.

You have to add sys.path in your manage.py file, following should work for you :-

sys.path.append(os.path.dirname(os.path.abspath(__file__)))

Leave a comment