Hi T,

I found this in the tagging issues from 2008 but it worked:

if your like me then you get this message from within the python
interpreter. Well I
figured out that I need to be running the"python manage.py shell"
command from within
the site DIR to get all the environment variables correct.

Cheers,

T

On Jul 25, 6:51 pm, todd <c.t.matsum...@gmail.com> wrote:
> Hello all,
>
> I'm working through the Practical Django Projects 2nd edition, and I'm
> using Django 1.0.2.
>
> I installed the tagging application tarball in my site-packages and
> when I ran the syncdb command the tagging application referenced a
> deprecated django object parse_lookup:
>
> from django.db.models.query import QuerySet, parse_lookup
> ImportError: cannot import name parse_lookup
>
> I looked on the tagging site and they seem to be aware of this
> problem, so they say checkout the trunk version where the bug is
> fixed. I swapped the two and tried to import tagging and got the
> following error:
>
> 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.
>
> Is anyone else running into this problem?
>
> Cheers,
>
> T
--~--~---------~--~----~------------~-------~--~----~
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