Specifically, in my manage.py file I have os.environ.setdefault(DJANGO_SETTINGS_MODULE, foobar.settings") foobar is a folder with an __init__.py file and settings is a folder with an __init__.py file that contains my secrets and imports dev.py, which then imports common.py.