When trying to install django tagging Im getting the following error :

[root@Fileserver django-tagging]# pwd

[root@Fileserver django-tagging]# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 49, in ?
    version_tuple = __import__('tagging').VERSION
  File "/opt/django/djangoblog/django-tagging/tagging/__init__.py", line 3, in ?
    from tagging.managers import ModelTaggedItemManager, TagDescriptor
  File "/opt/django/djangoblog/django-tagging/tagging/managers.py", line 5, in ?
    from django.contrib.contenttypes.models import ContentType
  File "/usr/lib/python2.4/site-packages/django/contrib/contenttypes/models.py", line 1, in ?
    from django.db import models
  File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 14, in ?
    if not settings.DATABASES:
  File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 276, in __getattr__
  File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 40, 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.

Ive tried a number of online hints and tips but still have yet to resolve this. Can anyone help ?

Edited by felix001: layout change

4 Years
Discussion Span
Last Post by pyTony
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.