svetlyak40wt / django-globals
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri May 29 05:51:54 -0700 2009 | |
| |
ChangeLog | Fri May 29 05:51:54 -0700 2009 | |
| |
LICENSE | Mon Sep 29 08:42:30 -0700 2008 | |
| |
MANIFEST.in | Fri May 29 05:51:54 -0700 2009 | |
| |
README.md | Mon Sep 29 09:27:16 -0700 2008 | |
| |
setup.py | Fri May 29 05:51:54 -0700 2009 | |
| |
src/ | Fri May 29 05:51:54 -0700 2009 |
README.md
Django-globals
Django-globals, is a very simple application, that allow to define a thread specific global variables.
Also, it includes a middleware User, which can be used, to access to the current user outside a view, when "request" variable is not defined.
Installation
Download sources, add place django_globals somewhere in yours python path.
Next, add django_globals to the INSTALLED_APPS and, optionally,
django_globals.middleware.User to the MIDDLEWARE_CLASSES.
Now you can make from django_globals import globals and access to
the globals.user anywhere.
