On Apr 30, 6:08 pm, dayvo <[EMAIL PROTECTED]> wrote:
> Thank you for the advice on this problem. I haven't touched Django
> since I finished this project. It's been about 4 months.
>
> Having had some more time to explore the issue, I believe the problem
> lies here:
>
> from django.contrib.contenttypes import generic
>
> In my models.py, I'm using generic foreign keys and generic
> relationships. My errors seem to center around this. I can do this
> in python:
>
> import django <- Works fine
> import django.contrib.contenttypes <- Works fine
> from django.contrib.contenttypes import generic
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named generic
>
> Has the generic library been moved?
Yep. I just looked at Hardy's Synaptics database and it points to
Django 0.96.1 (the "official" release.) Since 0.96.1, generic
relations have indeed moved. So your code above will only work with
Django SVN release 5172 or higher (http://code.djangoproject.com/
changeset/5172) but not with the older 0.96.1 where generic relations
live in django/db/models/fields/generic.py
The best thing for you is probably to uninstall the Hardy version of
Django and just grab the latest SVN trunk release and install it
yourself to your PYTHONPATH.
The SVN trunks of Django are known to be quite stable and there's
little reason to continue using the much older 0.96.1 version.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---