different return values in shell and wsgi

36 views
Skip to first unread message

wil...@gmail.com

unread,
Nov 2, 2014, 12:41:50 PM11/2/14
to django...@googlegroups.com
I'm in the process of upgrading a project from Django 1.5 and djorm-ext-hstore to Django 1.7 and django-hstore, and I've encountered a problem I cannot solve.

I have a hstore.DictionaryField which works as expected when working from the django shell (i.e. it returns a dictionary), but when I retrieve the value in a wsgi process, I get a string.  e.g. I'm expecting `{"entry": "18", "page": "363"}` but I get `"page"=>"127", "entry"=>"5"`.  I assume I've configured something wrong somewhere, but I can't find what it is.  Can anyone suggest what might be wrong?  I'm using django-hstore 1.3.5, and django 1.7.1.

Thanks in advance!

wilo

Nemesis

unread,
Nov 3, 2014, 1:23:29 PM11/3/14
to django...@googlegroups.com
Are you on a production environment?

Could you try unregistering the hstore extension and then registering again?

Federico
--
You received this message because you are subscribed to the Google Groups "django-hstore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-hstor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mike....@tivix.com

unread,
Nov 10, 2014, 3:01:41 PM11/10/14
to django...@googlegroups.com
I am also experiencing this issue with Django 1.7 and hstore 1.2.3

mike....@tivix.com

unread,
Nov 10, 2014, 3:10:49 PM11/10/14
to django...@googlegroups.com
I installed djangorestframework-hstore 1.1, which required update django-hstore to 1.3.5 and I'm still having the same issue.

mike....@tivix.com

unread,
Nov 13, 2014, 12:41:20 PM11/13/14
to django...@googlegroups.com
I ended up getting this to work without djangorestframework-hstore. I had to wipe my data after I upgraded hstore and that seemed to do the trick.
Reply all
Reply to author
Forward
0 new messages