[Answer]-Installing django-jqgrid; strange dependency on Dojango

1👍

The django-jqgrid README has a markup problem; the bullet point mentioning that dojango file should look like:

Thus, you need to copy/paste the json_encode function (along with all relevant imports) from Dojango’s util/__init__.py. Looking at the source of django-jqgrid shows where that code is expecting to find your pasted function:

from util.json import json_encode

So either just download __init__.py into a util directory in your application (i.e. the same level as models.py) or edit that line in jqgrid.py to point to where your json_encode function is.

Hope this helps.

Leave a comment