Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import name LOOKUP_SEP

Tags:

python

django

I'm using django and I'm trying to set up django-roa but when i'm trying to start my webserver I have this error cannot import name LOOKUP_SEP

If I remove django_roa from my INSTALLEDS_APP it's okay but I want django-roa working and I don't know how resolve this problem.

And I don't know what kind of detail I can tell to find a solution.

Thanks

like image 281
guillaume Avatar asked Mar 14 '13 11:03

guillaume


1 Answers

This question is the top Google search result for "cannot import name LOOKUP_SEP", therefore although it doesn't necessarily solve any other compatibility issues between django-roa and Django 1.5 I want to point out...

You can solve this (specific) error by replacing:

from django.db.models.sql.constants import LOOKUP_SEP

with:

from django.db.models.constants import LOOKUP_SEP
like image 178
rhunwicks Avatar answered Sep 28 '22 02:09

rhunwicks