With a fresh download of django-mptt 0.2 on Mac OS X 10.4.11, I proceed to install it with
setup.py but it doesn’t work, claiming a missing DJANGO_SETTINGS_MODULE environment
variable.
Full traceback follows.
[[[
$ sudo python setup.py install
Traceback (most recent call last):
File "setup.py", line 49, in ?
version_tuple = __import__('mptt').VERSION
File "/Users/verbosus/Desktop/django-mptt-0.2/mptt/__init__.py", line 1, in ?
from django.db.models import signals as model_signals
File "/Users/verbosus/bin/django_src/django/db/__init__.py", line 10, in ?
if not settings.DATABASE_ENGINE:
File "/Users/verbosus/bin/django_src/django/conf/__init__.py", line 28, in __getattr__
self._import_settings()
File "/Users/verbosus/bin/django_src/django/conf/__init__.py", line 57, in _import_settings
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.
]]]
Owner: jonathan.buchanan
Labels: -Priority-Medium Priority-Critical