#!/usr/bin/env python2.7 from __future__ import absolute_import import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) os.environ['DJANGO_SETTINGS_MODULE'] = 'zproject.settings' from django.conf import settings print getattr(settings, sys.argv[1])