#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    if os.getenv('ON_HEROKU') == '1':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "adhoc.conf.settings.staging")
    elif os.getenv('PROD') == 'true':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "adhoc.conf.settings.production")
    else:
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "adhoc.conf.settings.dev")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    if os.getenv('ON_HEROKU') == '1':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "clarityv2.conf.settings.staging")
    elif os.getenv('PROD') == 'true':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "clarityv2.conf.settings.production")
    else:
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "clarityv2.conf.settings.dev")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

Fix settings