You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from django_pgjson.fields import JsonField
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/django_pgjson/fields.py", line 21, in
from django.utils.module_loading import import_by_path as import_string
ImportError: cannot import name import_by_path
The text was updated successfully, but these errors were encountered:
So this is actually because of bug in the way that Django versions are detected:
if django.get_version() >= "1.7":
from django.utils.module_loading import import_string
else:
from django.utils.module_loading import import_by_path as import_string
This fails for Django >= 1.10 because of the lexical compare.
In Django 1.10+ import_by_path is removed.
The text was updated successfully, but these errors were encountered: