django-dantejcoder-0.1
توضیحات
A simple Django app to covert standard django-models to json
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-dantejcoder-0.1 |
| نام | django-dantejcoder |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DanteOnline |
| ایمیل نویسنده | iamdanteonline@gmail.com |
| آدرس صفحه اصلی | https://github.com/DanteOnline/django-dantejcoder |
| آدرس اینترنتی | https://pypi.org/project/django-dantejcoder/ |
| مجوز | GNU General Public License v3.0 |
# DanteJcoder
Simple way to make json from standard django models
Quickstart:
Installation
`pip install django-dantejcoder`
Simple use
1. Import DanteJcoder
```python
from dantejcoder.coder import DanteJcoder
```
2. Get one django model or queriset (for example in result variable)
3. Use DanteJcoder in JsonResponse
```python
return JsonResponse(result, encoder=DanteJcoder)
```
نحوه نصب
نصب پکیج whl django-dantejcoder-0.1:
pip install django-dantejcoder-0.1.whl
نصب پکیج tar.gz django-dantejcoder-0.1:
pip install django-dantejcoder-0.1.tar.gz