As Collin said, if your script isn't running from within a "proper"
Django environment, you have to ensure that your settings module is
correctly specified. You can do it several ways...
1. Using Django's setup_environ:
# put before any django imports, at the top of your file
from django.core.ma
If you don't use "manage.py shell" you must set your environment
properly - set the DJANGO_SETTINGS_MODULE and PYTHONPATH properly,
similar to how the modpython docs show you to set them for that to
work.
--~--~-~--~~~---~--~~
You received this message because you
2 matches
Mail list logo