semvec/pypi-packages huggingface dataset:
django-tojson 1.3.3
Easy JSON response for Django
License: BSD-3-Clause
Requires Python: >=3.6

# django-tojson

Django responses in json format, and more.


## Requirements

Python 3.6 or newer with Django >= 2.2 or newer.


## Installation

1. Install using pip:

    ```bash
    pip install django-tojson
    ```
    
2. Add to `INSTALLED_APPS` in your `settings.py`:

   ```python
   INSTALLED_APPS = (
       # ...
       "tojson",
       # ...
   )
   ```
3. Use views:
   
   ```python
   from tojson.views import DetailJsonView, ListJsonView
   
   
   class MyDetailJsonView(DetailJsonView):
       model = MyModel
       
       
   class MyListJsonView(ListJsonView):
       model = MyModel
   ```
   
## Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

https://github.com/wilmerm/django-tojson/issues


## Author

Developed and maintained by [Unolet](https://www.unolet.com).

Original author: [Wilmer Martinez](https://github.com/wilmerm).

Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.