Reputation: 89
I was working on Django project using django version 2.0 but somehow I switched back to 1.1 because of my client requirements.
I had used jsonfield in my django models in django version 2.0 but when I use this same field in django 1.1 it doesn't work. Instead it throw error like ImportError: No module named postgres.fields
I tried to use https://github.com/dmkoch/django-jsonfield this project as well but it has updated my django to 2.0 again. Is there any way I can use jsonfield in django 1.1
Upvotes: 1
Views: 694
Reputation: 1745
This isn't possible with only the Django 1.1 core because JSONField
was implemented into the Django core in version 1.9. See Django 1.9 JSONField
docs. However, I believe you could find a solution in this ticket, which includes a lot of links to pre-1.9 JSONField
implementation.
Upvotes: 1