Skip to main content

Multiple backends for your sessions!

https://secure.travis-ci.org/adw0rd/django-multi-sessions.png

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:

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.

Download files

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

Source Distribution

django-multi-sessions-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file django-multi-sessions-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-multi-sessions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32b95987f1befaa0557dc145e772c9641c904aaf0c28a29cdc4117efb685c38c
MD5 99891419738983c5b629a7cba5918336
BLAKE2b-256 028727ca9ac26447dbe498da1778fcdf2e7cb5593bad026e4f1c2431c21051aa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page