Skip to main content

Middleware that extracts {% block-s %} from pages and sends them as JSON. This allows the clients update parts of the pages, which is useful for Ajax apps and sites using History.PushState. If /mypage/ has {% block main_content %} in the template, make a request /mypage/?partial=main_content, and you'll receive a JSON: {"main_content": "..."}. The example Django project in the BitBucket contains a working JavaScript module that handles these requests and does something more.

Project description

UNKNOWN

Project details


Download files

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

Source Distribution

django-partial-page-0.4.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file django-partial-page-0.4.1.tar.gz.

File metadata

File hashes

Hashes for django-partial-page-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0406a101f0e2bd54ef91825d8e1ed82bbfbd61160e41ec4696a8b70d7670abd9
MD5 5e893b74375b087f970f6342fbfa00ed
BLAKE2b-256 1ad914842f04d23ae67e6b51459a6c19eee663a8393f72b1596d89bd782be2d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page