Skip to main content
Help us improve Python packaging – donate today!

Very simple application, that allow to define a thread specific global variables.

Project Description



Django-globals is a very simple application, that allow you to define
thread specific global variables.

It includes a middleware Global, which can be used to access to
the current request and user, which is useful outside of a view when the "request" variable is not

## Installation

Install using pip

pip install django_globals

## Configuration

In your project's ``, add `django_globals.middleware.Global` to `MIDDLEWARE`
(or `MIDDLEWARE_CLASSES` on Django < 1.10).

## Usage

Now you can use `from django_globals import globals` and access to
the `globals.request` and `globals.user` from anywhere.

## Help

For more information see the documentation at:

If you have questions or have trouble using the app please file a bug report

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_globals-0.3.1-py2.py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 6, 2018
django-globals-0.3.1.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None Mar 6, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page