Using python IRB generates this error "ImportError settings cannot be imported because environment variable %s is undefined"
by iampeterbanjo on July 2, 2010
This is being caused because "Unfortunately, the tagging module’s __init__.py file globally imports some models which rely on the rest of Django’s infrastructure to be up and running (hence the need for settings)."
- Option 1: launch the python IRB by using "python manage.py shell"
- Option 2: in python IRB enter "from django.conf import settings; settings.configure()"
Leave your comment