waltbrad
unread,Dec 3, 2008, 11:07:55 AM12/3/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django Basic Apps
I posted this last night, but it never appeared. I don't know why. I
can't get tagging to install correctly. I'm running Python 2.5 and
Django 1.10 alpha. I downloaded the tagging-trunk through the SVN,
and used the setup.py install that it came with.
The directory sits at:
C:\Python25\Lib\site-packages\tagging
This is what I get from the interpreter:
>>> import tagging
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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", li
ne 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 __ge
tattr__
self._import_settings()
File "C:\Python25\Lib\site-packages\django\conf\__init__.py", line
57, in _imp
ort_settings
raise ImportError("Settings cannot be imported, because
environment variable
%s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SE
TTINGS_MODULE is undefined.
>>>
====================
If DJANGO_SETTINGS_MODULE is the problem, how am I supposed to define
it? And where? Why would this be a problem in trying to import the
tagging module?