I tried your suggestion and got this: >>> from coltrane.models import Category Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/matthew/dev/source/coltrane/models.py", line 3, in <module> from django.db import models File "/usr/local/lib/python2.6/dist-packages/django/db/__init__.py", line 10, in <module> if not settings.DATABASE_ENGINE: File "/usr/local/lib/python2.6/dist-packages/django/utils/ functional.py", line 269, in __getattr__ self._setup() File "/usr/local/lib/python2.6/dist-packages/django/conf/ __init__.py", line 38, in _setup raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE) ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
I then found a thread about DJANGO_SETTINGS_MODULE here http://groups.google.com/group/django-users/browse_thread/thread/be0f814d1cf896f and set DJANGO_SETTINGS_MODULE to simply 'settings' like it suggests. I then got this: >>> from coltrane.models import Category Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/matthew/dev/source/coltrane/models.py", line 4, in <module> from django.contrib.auth import User ImportError: cannot import name User I also imported Django, which worked fine. Any thoughts? Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---