dlamotte / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

cannot import tagging after installation #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have downloaded the trunk,which is 154 i saw in the svn.However,after I
install it,I cannot import it. The error information is following:
Thank you very much

-----------------------------------------------------------------------
IDLE 1.2.2      
>>> import tagging

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import tagging
  File "C:\Python25\Lib\site-packages\tagging\__init__.py", line 3, in <module>
    from tagging.managers import ModelTaggedItemManager, TagDescriptor
  File "C:\Python25\Lib\site-packages\tagging\managers.py", line 5, in <module>
    from django.contrib.contenttypes.models import ContentType
  File
"C:\Python25\Lib\site-packages\django\contrib\contenttypes\models.py", line
1, in <module>
    from django.db import models
  File "C:\Python25\Lib\site-packages\django\db\__init__.py", line 9, in
<module>
    if not settings.DATABASE_ENGINE:
  File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line 28, in
__getattr__
    self._import_settings()
  File "C:\Python25\Lib\site-packages\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.

Original issue reported on code.google.com by Tunglian...@gmail.com on 9 Dec 2008 at 1:02

GoogleCodeExporter commented 8 years ago
my django is 1.01

Original comment by Tunglian...@gmail.com on 9 Dec 2008 at 1:07

GoogleCodeExporter commented 8 years ago
importing from the django shell rather the the python shell should fix this

Original comment by catojohn...@gmail.com on 18 Dec 2008 at 7:22

GoogleCodeExporter commented 8 years ago

Original comment by bros...@gmail.com on 22 Jan 2010 at 10:15