Skip to content

Commit 81fcee1

Browse files
authored
Update README.rst
1 parent b5cd2c2 commit 81fcee1

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

README.rst

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,42 @@ and ``Session`` model to add following features:
1818

1919
- Sessions store IP and User Agent
2020

21+
22+
Comparison
23+
==========
24+
25+
Here is a brief comparison between Django's session backends (db, cache, cached_db), `django-user-sessions`_, and django-qsessions.
26+
27+
+-------------------------+----+--------+-----------+----------------------+------------------+
28+
| | db | cache | cached_db | django-user-sessions | django-qsessions |
29+
+=========================+====+========+===========+======================+==================+
30+
| Better Performance | | ✔✔ || ||
31+
+-------------------------+----+--------+-----------+----------------------+------------------+
32+
| Persistent || ||||
33+
+-------------------------+----+--------+-----------+----------------------+------------------+
34+
| Query by User | | | |||
35+
+-------------------------+----+--------+-----------+----------------------+------------------+
36+
| Store IP and User Agent | | | |||
37+
+-------------------------+----+--------+-----------+----------------------+------------------+
38+
39+
40+
41+
42+
Requirements
43+
============
44+
45+
+----------------+-----------------+
46+
| Python version | Django versions |
47+
+================+=================+
48+
| 3.6 | 2.0, 1.11, 1.10 |
49+
+----------------+-----------------+
50+
| 3.5 | 2.0, 1.11, 1.10 |
51+
+----------------+-----------------+
52+
| 3.4 | 2.0, 1.11, 1.10 |
53+
+----------------+-----------------+
54+
| 2.7 | 1.11, 1.10 |
55+
+----------------+-----------------+
56+
2157
Installation
2258
============
2359

@@ -42,7 +78,7 @@ using another session backend, you need to migrate sessions manually.
4278
``'django.contrib.sessions.middleware.SessionMiddleware'`` with
4379
``'qsessions.middleware.SessionMiddleware'``.
4480

45-
- Add ``SESSION_ENGINE = 'qsessions.backends.cached_db'``.
81+
- Set ``SESSION_ENGINE`` to ``'qsessions.backends.cached_db'``.
4682

4783
(4) Run migrations to create ``qsessions.models.Session`` model.
4884

0 commit comments

Comments
 (0)