A simple Django app to covert standard django-models to json
Project description
# 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)
```
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)
```
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_dantejcoder-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6b89d6c46ceac42183400740fb9256b07d0e1a0e6983dd2244912fc68c813a |
|
MD5 | b00efd2b8c60be3b484f3fd6533f8a80 |
|
BLAKE2b-256 | 66c3fcae6c9ffd26ddab044f4457162f09f89617c54ee9971edd653811267274 |