question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSONfield compatability

See original GitHub issue

This package is currently importing JSONfield from either django-jsonfield + django-jsonfield-compat or django_mysql, however the django-jsonfield/django-jsonfield-compat combination only supports up to django 1.9.

I can make a PR for importing from the current preferred location, django.contrib.postgres.fields, but I just need to know if you’d also want to continue support for django =< 1.9 and therefore allow import from the existing packages.

I am not a mysql user, but it appears no change is needed there, and importing from django_mysql is still the preferred method.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
travijuucommented, Mar 20, 2020

@cb109 When I try to use django-activity-stream with Django 3.0, I got error below

django.core.exceptions.ImproperlyConfigured: You must either install django-jsonfield + django-jsonfield-compat, or django-mysql as an alternative, if you wish to use a JSONField on your actions

Note: both django-jsonfield and django-jsonfield-compat already installed.

When I dig into error, I see invalid import statement of six in this link.

from django.utils import six

after I replaced this line with import six then Django 3.0 started working.

0reactions
lociiicommented, Jan 14, 2021

Switch from all the different libraries to Django built-in JSONField or the backported package has been merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsonfield - PyPI
Compatibility. django-jsonfield supports Python 2.7-Python 3.3 and Django 1.4+. Why doesn't it support Python 2.6? You actually might be OK if you don't...
Read more >
kbussell/django-jsonfield-compat - GitHub
Compatibility layer for django-jsonfield and Django's native JSONField - GitHub - kbussell/django-jsonfield-compat: Compatibility layer for django-jsonfield ...
Read more >
how to write a query to get find value in a json field in django
If you have an older version of Django, or you are using the Django JSONField library for compatibility with MySQL or something similar,...
Read more >
JSONField db_type `jsonb`==>`json` for sequential data no ...
JSONField in Django3.0.6 allows overriding db_type jsonb to json , which allows preserving ... for storing sequential data breaks backwards compatibility ...
Read more >
Django 3.1 release notes — Django 4.1.4 documentation
JSONField that can be used on all supported database backends. ... in order to allow compatibility with the older versions of Django.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found