Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Riak based session backend for django

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 riak_sessions
Octocat-spinner-32 test_project
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 README.rst
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 setup.py
README.md

Django Riak Sessions

Installation

Due to the protobuf having had a long standing issue of not installing from PyPI the installation involves two steps:

pip install protobuf -U
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
RIAK_HOST = '127.0.0.1'
RIAK_TRANSPORT_CLASS = riak.RiakPbcTransport
RIAK_BUCKET = 'django-riak-sessions'
RIAK_SESSION_KEY = 'session:%(session_key)s'

To use secondary indexes, enable LevelDB:

RIAK_SESSION_USE_2I = False
Something went wrong with that request. Please try again.