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

if __name__ == "__main__":
    if socket.gethostname() == 'blog':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.production")
    else:
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.local"

    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 socket.gethostname() == 'blog':
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.base")
    else:
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.base")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

Switch settings used to just settings/base.py
Switch settings used to just settings/base.py
