export DJANGO_SETTINGS_MODULE=yoursite.settings
But this blog has a great summary of the different options. Another approach worth noting is the one manage.py uses:
from django.core.management import setup_environ
from mysite import settings
setup_environ(settings)
No comments:
Post a Comment