Ask Your Question
0

No JSON object could be decoded

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

coldsystem gravatar image
python manage.py loaddata  /root/forum/data.json
/usr/lib/python2.6/site-packages/Django-1.4.3-py2.6.egg/django/conf/__init__.py:75: 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/__init__.py:82: DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.
  DeprecationWarning
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/loaddata.py", 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/json.py", 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
0

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

Evgeny gravatar image

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

edit flag offensive delete link more
0

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

coldsystem gravatar image

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

:(

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

Stats

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

Seen: 1,428 times

Last updated: Feb 21 '13

Related questions