semvec/pypi-packages huggingface dataset:
django-ajaxify 0.0.1b
Rendering helpers for AJAX enabled views
License: BSD License

Django Ajaxify
==============

A few little helpers.

Instead of this::

    def view(request):
        context_dict = {'items': MyModel.objects.all()}
        return render(request, "template.html", context_dict)

Use this::

    from ajaxify import render_ajax

    def view(request):
        context_dict = {'items': MyModel.objects.all()}
        return render_ajax(request, "template.html", template_fragment.html", context_dict)

Now if your view is responding to AJAX requests it will respond with only the
generated fragment.