Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-ajaxify-0.0.1.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file django-ajaxify-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-ajaxify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e53bf17e1d87165578aaeab38986b69e53cbadbd647725a93c63743cf18388f8
MD5 02279e6f96a8c80c37db5c85d8323482
BLAKE2b-256 874d3a2c36b3414ff5ce8364472a5966b9cdbf5248febb26a5e0e0c61a29d445

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page