Metadata-Version: 2.5
Name: django-request-vars
Version: 2.0.0
Summary: Stores current request, user and your defined data in thread local variable.
Project-URL: Homepage, https://github.com/kindlycat/django-request-vars
Project-URL: Documentation, https://django-request-vars.readthedocs.io
Project-URL: Repository, https://github.com/kindlycat/django-request-vars.git
Project-URL: Issues, https://github.com/kindlycat/django-request-vars/issues
Author-email: Grigory Mishchenko <grishkokot@gmail.com>
License-Expression: BSD-3-Clause
License-File: LICENSE
Keywords: cache,django,middleware,request,thread,user,variable
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Python: >=3.11
Requires-Dist: django>=5.2
Description-Content-Type: text/x-rst

Django request vars
===================
.. image:: https://github.com/kindlycat/django-request-vars/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/kindlycat/django-request-vars/actions/workflows/tests.yml
.. image:: https://codecov.io/gh/kindlycat/django-request-vars/graph/badge.svg
    :target: https://codecov.io/gh/kindlycat/django-request-vars
.. image:: https://readthedocs.org/projects/django-request-vars/badge/?version=latest
    :target: http://django-request-vars.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/pypi/v/django-request-vars.svg
    :target: https://pypi.org/project/django-request-vars/

Application that stores current request, user and your defined data in thread
local variable.

Full documentation on `read the docs`_.

Requirements
------------

**Django:** 5.2, 6.0, 6.1
**Python:** 3.11+

Installation
------------
Install using pip:

.. code-block:: sh

    $ pip install django-request-vars

Add to installed apps if you need template tags:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'request_vars',
        ...
    )

Add middleware:

.. code-block:: python

    MIDDLEWARE = [
        ...
        'request_vars.middleware.RequestVarsMiddleware',
        ...
    ]


.. _`read the docs`: https://django-request-vars.readthedocs.io/en/master/
