Ask Your Question

No JSON object could be decoded

asked 2013-02-20 10:58:20 -0600

coldsystem's avatar
python loaddata  /root/forum/data.json
/usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/conf/ DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
  "use STATIC_URL instead.", DeprecationWarning)
/usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/core/cache/ DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.
WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently
see outdated content on your site.

Problem installing fixture '/root/forum/data.json': Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/core/management/commands/", line 190, in handle
    for obj in objects:
  File "/usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/core/serializers/", line 47, in Deserializer
    raise DeserializationError(e)
DeserializationError: No JSON object could be decoded

How to Solve this ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-21 03:07:38 -0600

coldsystem's avatar

The file was exported with this command (python dumpdata > data.json) but importing is no success


edit flag offensive delete link more

answered 2013-02-20 11:01:23 -0600

Evgeny's avatar

This probably means that the data.json does not actually contain data in json format.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-20 10:58:20 -0600

Seen: 2,136 times

Last updated: Feb 21 '13

Related questions