zulip/bin/get-django-setting

12 lines
280 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
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])