After installing and getting geoip2 to work on the python console, this error occurs when running the actual Django project. In line 86 of middleware.py in the repo:
request.session[GeoIP2Middleware.SESSION_KEY] = request.geo_data = data
If you run json.dumps(data), you will get the error.
After installing and getting geoip2 to work on the python console, this error occurs when running the actual Django project. In line 86 of middleware.py in the repo:
If you run
json.dumps(data)
, you will get the error.