A simple way to use Master Data in django project.
Project description
Django Master data
- install dsm-django-masterdata
pip install pip install dsm-django-masterdata
- install django app in
settings.py
INSTALLED_APPS = [
...
'dsm_django_masterdata.hscode',
'dsm_django_masterdata.area',
...
]
- migrate database
python manage.py migrate
- check data in admin page
How to use
- HScode
from dsm_django_masterdata.hscode.models import HScode
hs_code = HScode.objects.all()
- Area
from dsm_django_masterdata.area.models import Area
area = Area.objects.all()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dsm_django_masterdata-0.0.5.tar.gz
.
File metadata
- Download URL: dsm_django_masterdata-0.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e18257a4a7f532b1a7671fb3fb33fc8e3da91b64596d5a3f0ed2a0f9c485211 |
|
MD5 | 6d64a05182fb30c017445dc22637d464 |
|
BLAKE2b-256 | 94ea9011b087db26f8f147b70986a06082fe64a57ac75de989d426975b6c9fb4 |