Django에서 데이터를 덤프하는 중 셸에 설치된 응용 프로그램을 검사하려고 할 때이 문제가 발생합니다.Django가 설치된 응용 프로그램을 찾지 못했습니다.
[[email protected] kb]$ python2.7 manage.py dumpdata > dump.json
System check identified some issues:
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks like this project was generated using Django 1.5 or earlier. You should ensure your tests are all running & behaving as expected. See https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for more information.
CommandError: Unable to serialize database: cannot import name simplejson
[[email protected] kb]$ python2.7
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import simplejson
>>>
[this] (http://stackoverflow.com/questions/28048943/cannot-import-name-simplejson-after-installing-simplejson) 문제가있는 것으로 보입니다. 앱이 장고의 이전 버전 용으로 제작 되었습니까? – yorodm