skip to navigation
skip to content

Not Logged In

django-globals 0.2.1

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

Django-globals

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

Also, it includes a middleware Global, which can be used, to access to the current request and user outside a view, when “request” variable is not defined.

Installation

Install django_globals using pip.

Next, add django_globals to the INSTALLED_APPS and django_globals.middleware.Global to the MIDDLEWARE_CLASSES.

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

 
File Type Py Version Uploaded on Size
django-globals-0.2.1.tar.gz (md5) Source 2014-05-31 3KB
  • Downloads (All Versions):
  • 24 downloads in the last day
  • 110 downloads in the last week
  • 530 downloads in the last month