{"repo":"QueraTeam/django-qsessions","free":true,"listed":false,"github":"https://github.com/QueraTeam/django-qsessions","clone":"git clone https://github.com/QueraTeam/django-qsessions.git","description":"Extended session backends for Django (Sessions store IP, User Agent, and foreign key to User)","language":"Python","stars":168,"topics":["python","django","session","sessions","cache","session-management"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Django QSessions django-qsessions offers two extended session backends for Django. They extend Django's db and cached db backends (and Session model) with following extra features: - Sessions have a foreign key to User - Sessions store IP and User Agent These features help you implement \"Session Management\" and show a list of active sessions to the user. You can display IP, location and user agent for each session and add an option to revoke sessions. Comparison Here is a brief comparison between Django's session backends (db, cache, cached db), and django-qsessions. django qsessions cache db cached db db cached db Performance ✔✔ ✔ ✔ Persistence ✔ ✔ ✔ ✔ Foreign Key to User ✔ ✔ Store IP and User Agent ✔ ✔ Compatibility - Python: 3.10 , 3.11 , 3.12 , 3.13 , 3.14 - Django: 4.2 , 5.0 , 5.1 , 5.2 , 6.0 Installation If your system is in production and there are active sessions using another session backend, you need to migrate them manually. We have no migration script. 1. If you want to use the cached db backend, make sure you've configured your cache. If you have multiple caches defined in CACHES , Django will use the default cache. To use another cache, set SESSION CACHE ALIAS to the name of that cache. 2. Install the latest version from PyPI: 3. In settings: - In INSTALLED APPS replace 'django.contrib.sessions' with 'qsessions' . - In MIDDLEWARE or MIDDLEWARE CLASSES replace 'django.contrib.sessions.middleware.SessionMiddleware' with 'qsessions.middleware.SessionMiddleware' . -","default_branch":null,"files":null,"tree":[],"storefront":"/r/QueraTeam","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/QueraTeam/django-qsessions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}