If you're playng with Django directly from Python, and not from Django's own manage.py shell, then you need to set the
DJANGO_SETTINGS_MODULE variable before launching Python.
export DJANGO_SETTINGS_MODULE=myproject.settings
For Apache to pick up that variable, you need to set it in httpd.conf as follows:
SetEnv DJANGO_SETTINGS_MODULE myproject.settings