All Projects → martinrusev → Django Redis Sessions

martinrusev / Django Redis Sessions

Licence: bsd-3-clause
Session backend for Django that stores sessions in a Redis database

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Redis Sessions

Visual Chatbot
☁️ 👀 💬 Visual Chatbot
Stars: ✭ 161 (-66.32%)
Mutual labels:  redis, django
Tech Blog
我的个人技术博客(Python、Django、Docker、Go、Redis、ElasticSearch、Kafka、Linux)
Stars: ✭ 203 (-57.53%)
Mutual labels:  redis, django
Django instagram
Photo sharing social media site built with Python/Django. Based on Instagram's design.
Stars: ✭ 165 (-65.48%)
Mutual labels:  redis, django
Dailyfresh
Django-天天生鲜电商学习项目
Stars: ✭ 127 (-73.43%)
Mutual labels:  redis, django
Endoflife.date
Informative site with EoL dates of everything
Stars: ✭ 296 (-38.08%)
Mutual labels:  redis, django
Django School Management
Deployment Ready Developer to Developer Full-stack School Management System with payments, e-admission, result management, academic functionalities, and much more implemented in a simple way.
Stars: ✭ 151 (-68.41%)
Mutual labels:  redis, django
Repoll
Redis管理平台Repoll,现已开源,基于redis3.x,支持单机、哨兵以及集群模式
Stars: ✭ 196 (-59%)
Mutual labels:  redis, django
Playlistor
🎶Apple Music ↔️ Spotify playlist convertor.
Stars: ✭ 95 (-80.13%)
Mutual labels:  redis, django
Ecommerce website development
本项目基于Django1.8.2等来开发一个电商平台,可实现注册、登录、浏览、购买、支付等全部常用功能。
Stars: ✭ 246 (-48.54%)
Mutual labels:  redis, django
Chain
链喵 CMDB 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 240 (-49.79%)
Mutual labels:  redis, django
Django Bruteforce Protection
Bruteforce protection for Django projects based on Redis. Simple, powerful, extendable.
Stars: ✭ 110 (-76.99%)
Mutual labels:  redis, django
Docker Django
A complete docker package for deploying django which is easy to understand and deploy anywhere.
Stars: ✭ 378 (-20.92%)
Mutual labels:  redis, django
Banking System
A banking System Created Using Django Python Web Framework
Stars: ✭ 105 (-78.03%)
Mutual labels:  redis, django
Pychat
webchat via WebSockets/WebRTC that allows messaging/video call/screen sharing
Stars: ✭ 152 (-68.2%)
Mutual labels:  redis, django
Django Rq
A simple app that provides django integration for RQ (Redis Queue)
Stars: ✭ 1,361 (+184.73%)
Mutual labels:  redis, django
Dailyfresh B2c
dailyfresh mall based on B2C model
Stars: ✭ 177 (-62.97%)
Mutual labels:  redis, django
Docker Django Example
A production ready example Django app that's using Docker and Docker Compose.
Stars: ✭ 86 (-82.01%)
Mutual labels:  redis, django
Django Redis Metrics
Metrics for django apps backed by Redis.
Stars: ✭ 93 (-80.54%)
Mutual labels:  redis, django
Website
django 开发的BBS博客项目, 此项目包含多用户注册,话题模块,发布文章,文章评论,课程、社区BBS以及消息提示,关注,采用邮箱注册,激活验证登录,以及QQ注册登录,招募作者发布教程在后台管理系统发布, pc采用模板渲染,cms采用vue drf前后分离,登录采用JWT认证登录、移动端采用react开发,
Stars: ✭ 217 (-54.6%)
Mutual labels:  redis, django
Awesome Cheatsheets
👩‍💻👨‍💻 Awesome cheatsheets for popular programming languages, frameworks and development tools. They include everything you should know in one single file.
Stars: ✭ 26,007 (+5340.79%)
Mutual labels:  redis, django

django-redis-sessions

Redis database backend for your sessions

|Build Status|

  • Installation_
  • Available Settings_
  • Changelog_

Installation

  • Run pip install django-redis-sessions or alternatively download the tarball and run python setup.py install,

For Django < 1.4 run pip install django-redis-sessions==0.3

  • Set redis_sessions.session as your session engine, like so:

.. code:: python

SESSION_ENGINE = 'redis_sessions.session'

Available Settings

.. code:: python

SESSION_REDIS = {
    'host': 'localhost',
    'port': 6379,
    'db': 0,
    'password': 'password',
    'prefix': 'session',
    'socket_timeout': 1,
    'retry_on_timeout': False
    }

If you prefer domain socket connection, you can just add this line instead of HOST and PORT.

.. code:: python

SESSION_REDIS = {
    'unix_domain_socket_path': '/var/run/redis/redis.sock',
    'db': 0,
    'password': 'password',
    'prefix': 'session',
    'socket_timeout': 1,
    'retry_on_timeout': False
}

Redis Sentinel


.. code:: python

    SESSION_REDIS_SENTINEL_LIST = [(host, port), (host, port), (host, port)]
    SESSION_REDIS_SENTINEL_MASTER_ALIAS = 'sentinel-master'

Redis Pool (Horizontal partitioning)

Splits sessions between Redis instances based on the session key. You can configure the connection type for each Redis instance in the pool (host/port, unix socket, redis url).

.. code:: python

SESSION_REDIS = {
    'prefix': 'session',
    'socket_timeout': 1
    'retry_on_timeout': False,
    'pool': [{
        'host': 'localhost3',
        'port': 6379,
        'db': 0,
        'password': None,
        'unix_domain_socket_path': None,
        'url': None,
        'weight': 1
    },
    {
        'host': 'localhost2',
        'port': 6379,
        'db': 0,
        'password': None,
        'unix_domain_socket_path': None,
        'url': None,
        'weight': 1
    },
    {
        'host': 'localhost1',
        'port': 6379,
        'db': 0,
        'password': None,
        'unix_domain_socket_path': None,
        'url': None,
        'weight': 1
    }]
}

Tests

.. code:: bash

$ pip install -r dev_requirements.txt
# Make sure you have redis running on localhost:6379
$ nosetests -v

Changelog <https://github.com/martinrusev/django-redis-sessions/blob/master/CHANGELOG.md>__

.. _Installation: #installation .. _Available Settings: #available-settings .. _Changelog: #changelog

.. |Build Status| image:: https://travis-ci.org/martinrusev/django-redis-sessions.svg?branch=master :target: https://travis-ci.org/martinrusev/django-redis-sessions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].