python manage.py dumpdata > data.json
However, I receive such a traceback:
CommandError: Unable to serialize database: 'charmap' codec can't encode characters in position 1-4: character maps to
Exception ignored in:
Traceback (most recent call last):
File "C:\Users\Illia\Desktop\MyDjangoStuff\greatkart\venv\lib\site-packages\django\db\models\sql\compiler.py", line 1625, in cursor_iter
cursor.close()
sqlite3.ProgrammingError: Cannot operate on a closed database.
How to solve this issue?
0 comments:
Post a Comment
Thanks