Hi,
I have installed the django tagging either by the using the setup.py
or
copying the "tagging" directory.
But when I import tagging in the python shell it raised:
IDLE 2.6.2      ==== No Subprocess ====
>>> import tagging
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import tagging
  File "/usr/local/lib/python2.6/dist-packages/tagging/__init__.py",
line 3, in <module>
    from tagging.managers import ModelTaggedItemManager, TagDescriptor
  File "/usr/local/lib/python2.6/dist-packages/tagging/managers.py",
line 5, in <module>
    from django.contrib.contenttypes.models import ContentType
  File "/usr/local/lib/python2.6/dist-packages/django/contrib/
contenttypes/models.py", line 1, 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 have used the eric's method mentioned in this page
http://code.google.com/p/django-tagging/issues/detail?id=110
But it just didn't work.

Can someone help me? Thanks!
My environment is Django (1, 1, 0, 'final', 0)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to