Cannot import name LOOKUP_SEP

I am using django and I am trying to configure django-roa, but when I try to start my web server I have this error cannot import name LOOKUP_SEP

If I remove django_roa from my INSTALLEDS_APP, everything is fine, but I want django-roa to work, and I do not know how to solve this problem.

And I don’t know what details I can say to find a solution.

thanks

+4
source share
3 answers

django_roa is not yet compatible with django 1.5. I am afraid that it only works with django 1.3.

0
source

This question is the surest Google search result for β€œit is impossible to import the name LOOKUP_SEP”, therefore, although it does not necessarily solve any other compatibility problems 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 
+17
source

I downgraded from 1.5.2 to 1.4.0, and my application started working again. Via pip:

pip install django == 1.4

Hope this helps.

0
source

Source: https://habr.com/ru/post/1469212/


All Articles