Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Problem using django_jsonfield #83

Open
AlJohri opened this issue Mar 13, 2014 · 0 comments
Open

Problem using django_jsonfield #83

AlJohri opened this issue Mar 13, 2014 · 0 comments

Comments

@AlJohri
Copy link
Contributor

AlJohri commented Mar 13, 2014

I updated the requirements.txt to use

-e hg+https://[email protected]/schinckel/django-jsonfield@ab026e78869b9be8f2d961a3e9a1730ae46cbc6d#egg=django_jsonfield-0.9.0

instead of

-e hg+https://[email protected]/schinckel/django-jsonfield#egg=django_jsonfield-dev

because

https://bitbucket.org/schinckel/django-jsonfield/commits/ab026e78869b9be8f2d961a3e9a1730ae46cbc6d

updates django-jsonfield's version to 0.9.0 which seems to be last compatible version with Capitol-Words.

However, I get

django.db.utils.DatabaseError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json NOT NULL\n)' at line 12")

when I run python manage.py syncdb.

This is because of cwod_site/cwod/models.py has class Embed(models.Model) with:

    extra = jsonfield.JSONField(blank=True, default='{}')

Do you know how to get this working properly?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant