Riak based session backend for django
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead, 4 commits behind flashingpumpkin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
riak_sessions
test_project
.gitignore
LICENSE
MANIFEST.in
README.md
README.rst
setup.py

README.md

Django Riak Sessions

Installation

pip install django-riak-sessions

Configuration

  • Add riak_sessions to your installed apps

  • Add the session engine to your settings:

      SESSION_ENGINE = 'riak_sessions.backends.riak'
    

Optional Configuration

There are a couple of optional configuration values. The default values are as follows:

import riak
RIAK_PORT = 8087
fIAK_HOST = '127.0.0.1'
RIAK_TRANSPORT_CLASS = riak.RiakPbcTransport
RIAK_BUCKET = 'django-riak-sessions'
RIAK_SESSION_KEY = 'session:%(session_key)s'
RIAK_SESSION_USE_2I = False  # Enables secondary indexes (requires client 1.4.0+ and ELevelDB back end)