Django command dumpdatautf8 and loaddatautf8
Project description
Django Dump Load UTF-8
Django provides great database management, however, the dumpdata
and loaddata
commands do not use utf-8
encoding.
Thus, many data are not able to dump and load.
Feel sorry that I'm not able to provide Django a patch, for the contribution guide is too long to read. If anyone has time, please help me to merge it to Django.
Installation
pip install django-dump-load-utf8
Usage
Add to INSTALLED_APPS
# settings.py
INSTALLED_APPS = [
'...',
'django_dump_load_utf8',
'...',
]
Use as a manage.py
command
manage.py dumpdatautf8 --output data.json
# In another database
manage.py loaddatautf8 data.json
About
If this is useful, please give me a star!
If you have time, please help me merge this to django!
The project currently only supports python 3.8+, if you have time, please make it more competitive.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-dump-load-utf8-0.0.4.tar.gz
.
File metadata
- Download URL: django-dump-load-utf8-0.0.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 963b8428803551007a53770aa60ceb9b02a59ec22c7a56b7aacda811772f2d17 |
|
MD5 | a74d04ef0b261c88c3cf96e9ab170f4c |
|
BLAKE2b-256 | d8a1ac6e535660fb6aa3864c1e7360856590cc04170a58bbab573ea833b017c6 |
File details
Details for the file django_dump_load_utf8-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: django_dump_load_utf8-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2002ab5eba55b5c4230667b6a7144a5a6aad9da89ee6f5b8bd323b00548110 |
|
MD5 | c888a662dd238b3c63535db7cc5202a3 |
|
BLAKE2b-256 | 20fffaa95c7ac8ae44ae511b81e5ca04f87d70731c1b81300b5755fc6a6fbec5 |