{ "info": { "author": "Alex Hill", "author_email": "alex@hill.net.au", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": ".. image:: https://img.shields.io/pypi/v/djpj.svg\n :target: https://pypi.python.org/pypi/DjPj\n.. image:: https://travis-ci.org/AlexHill/djpj.svg?branch=master\n :target: https://travis-ci.org/AlexHill/djpj\n.. image:: https://coveralls.io/repos/github/AlexHill/djpj/badge.svg?branch=master\n :target: https://coveralls.io/github/AlexHill/djpj?branch=master\n\nOverview of DjPj (formerly Django-PJAX-Blocks)\n==============================================\n\nDjPj is a simple, flexible way to add PJAX support to your Django project and\ndeliver a faster browsing experience to users of your website.\n\nIf you don't know what PJAX is, `read about how it works`__ below. In a\nnutshell, it makes navigating between pages on your website faster by loading\nonly the part of the page that needs to change, rather than the whole thing.\nIt's is a well-established technique; if you're reading this on GitHub, you\nprobably loaded this content via PJAX.\n\n__ https://pypi.python.org/pypi/DjPj/#how-does-pjax-work\n\nIn a nutshell, your DjPj-enabled website will respond to PJAX requests with\nthe contents of a single template block of your choosing. It requires no\nchanges to your views, which means it's easy to add PJAX support to\nthird-party Django apps.\n\nGetting started\n===============\n\nPJAX requires cooperation between your front end (the Javascript that runs in\nyour visitors' web browsers) and your Django back end.\n\n1. Set up the front end with jquery-pjax\n----------------------------------------\n\nThe front end is handled by the jquery-pjax library, so first of all, read about\n`how to use jQuery-PJAX`__ and pick one of the techniques there.\n\n__ https://github.com/defunkt/jquery-pjax\n\n2. Install DjPj on your server\n------------------------------\n\nFirst, make sure the views you're PJAXing return TemplateResponse__. DjPj works\nby changing the way your templates are rendered, so it won't work with a\npre-rendered ``HttpResponse``.\n\n__ https://docs.djangoproject.com/en/dev/ref/template-response/\n\nInstall DjPj from PyPI::\n\n > pip install djpj\n\n3. Start using PJAX - basic usage examples\n------------------------------------------\n\nImagine you have a template, ``blog_post.html`` that looks like this::\n\n
\n