Multi-sessions backend for Django
Project description
Multiple backends for your sessions!
Designed for moving sessions from one session engine to another, without stopping the current sessions. It consistently passes backends in the list (settings.SESSION_MULTISESSIONS_POOL) and depending on the modes of doing the necessary.
For more information see:
http://adw0rd.com/2012/django-multi-sessions/en/ - article about it in English
http://adw0rd.com/2012/django-multi-sessions/en/ - article about it in Russian
http://pypi.python.org/pypi/django-multi-sessions - the PyPI page
https://github.com/adw0rd/django-multi-sessions - the GitHub repository
Installation
1. Download the archive and run python setup.py install or pip install django-multi-sessions
2. Set multi_sessions.session as your session engine, like so:
SESSION_ENGINE = "multi_sessions.session"
3. Example settings:
SESSION_MULTISESSIONS_POOL = ( {"backend": "redis_sessions.session", "modes": ["read", "write"]}, {"backend": "django.contrib.sessions.backends.db", "modes": ["read", "delete"]}, )
4. Available modes:
“read” - Allows launch “load” method;
“write” - Allows launch “save” and “create” method;
“delete” - Allows launch the “delete” method.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-multi-sessions-0.1.0.tar.gz
.
File metadata
- Download URL: django-multi-sessions-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b95987f1befaa0557dc145e772c9641c904aaf0c28a29cdc4117efb685c38c |
|
MD5 | 99891419738983c5b629a7cba5918336 |
|
BLAKE2b-256 | 028727ca9ac26447dbe498da1778fcdf2e7cb5593bad026e4f1c2431c21051aa |