Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Django Client Data
==================

This allows Django to pass data to the browser.

Installation
------------

To get the latest stable release from PyPi

.. code-block:: bash

pip install django_client_data

Add ``django_client_data`` to your ``INSTALLED_APPS``

.. code-block:: python

INSTALLED_APPS = (
...,
'django_client_data',
)

Install middleware.

Install context processor.

Usage
-----

Call ``set_client_data()``.

Include ``client_data.html`` in your page.

Settings
--------

CLIENT_DATA_NAMESPACE, defaults to 'DJANGO', the data is a property of this name
named 'client_data'.

Mechanism
---------

Django Client Data works by attaching a ``client_data`` attribute on the request
object. The ``client_data.html`` template attaches a ... to the JavaScript
global indicated by CLIENT_DATA_NAMESPACE.

Todo
----

* add a "context processors" feature to client data so custom values can be
injected

Run Tests
---------

.. code-block:: bash

./configure.sh
source venv/bin/activate
python manage.py test

Metadata

Release files for django-client-data 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for django-client-data 0.1
File Size Uploaded
django_client_data-0.1.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-client-data 0.1
File Interpreter ABI Platform
django_client_data-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / django_client_data-0.1.tar.gz

Download URL django_client_data-0.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
364314e03ecf5be7e90d23e390eb12386c17e45a419049a8fdc7031d7690782d
BLAKE2b-256 checksum
How to use checksums
288b1386c834f55dec60239c339842560457fb2e75c58d3a390340662e7f80ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_client_data-0.1.0-py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL django_client_data-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69e4dc272a95e7c806c74ef05d6e47eaf5f783e57d5ae1a295762346c3a19f8b
BLAKE2b-256 checksum
How to use checksums
92909c92a36b67a6d5546f2ab4a9b581e7d3c227470787e68261353ce9ccf58f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release history Release notifications | RSS feed

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

This release

0.1 This release

2 release files

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