0

After migration fandjango to version 4.2., I've got an error when I access my facebook application:

Exception Value: [u'Enter valid JSON']

Exception Location: /usr/local/lib/python2.7/dist-packages/jsonfield/fields.py in pre_init, line 77

Trace:

/usr/local/lib/python2.7/dist-packages/jsonfield/subclassing.py in set obj.dict[self.field.name] = self.field.pre_init(value, obj) ...

jsonfield.subclassing.Creator object at 0x2a5c750

obj
User: My User

value u''

/usr/local/lib/python2.7/dist-packages/jsonfield/fields.py in pre_init raise ValidationError(_("Enter valid JSON")) ...

▼ Local vars Variable Value self
jsonfield.fields.JSONField: extra_data

obj
User: My User

value u''

I have upgraded fandjagno using pip install -upgrade fandjango, python manage.py migrate fandjango.

There were another problems:

-No module named jsonfield, so I installed it using pip

-No module named dateutil.tz, so I installed it as well.

-Also it asked for property DJANGO_SITE_URL, which was not defined in the settings object. I putted also it in the settings file. However I didn't find any documentation about this property.

So now I am trying to figure out what else is needed.

4

1 回答 1

1

好的我明白了。问题出在mysql数据库上。新版本增加了一个json字段extradata。MySql 将其解释为具有 NULL 值的文本字段。所以问题是 fandjango 想要空的 json,而不是 NULL。我已经用“{}”更新了 extradata 字段并且它工作正常。

现在我有一个标准问题:该应用程序的移动版本不可用,因为它被错误地配置为移动访问。和以前一样,在新版本之前

现在我将尝试弄清楚这是什么。:)

于 2014-01-14T09:19:19.350 回答