Skip to content

MaxPresman/django-rethinkdb-sessions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-rethinkdb-sessions

image

Django session backend for rethinkdb.

Installation

  1. install the package by pypi

    pip install django-rethinkdb-sessions

  2. in django settings, switch the session over to rethinkdb-sessions

    SESSION_ENGINE = 'rethinkdb_sessions.main'

  3. configure the following settings to adjust the rethinkdb enviorment
    • "SESSION_RETHINK_HOST" -- host that rethinkdb is currently running on.
    • "SESSION_RETHINK_PORT" -- current rethinkdb port
    • "SESSION_RETHINK_DB" -- rethinkdb database
    • "SESSION_RETHINK_TABLE" -- rethinkdb table
    • "SESSION_RETHINK_AUTH" -- rethinkdb auth key (if exists)

Running Tests

Tests are included, invoke tests by running

"python tests/tests.py"