@@ -5,8 +5,9 @@ Django Qsessions
5
5
django-qsessions is a session backend for Django that extends Django's ``cached_db `` session backend
6
6
and ``Session `` model to add following features:
7
7
8
- * Sessions have a foreign key to User
9
- * Sessions store IP and User Agent
8
+ - Sessions have a foreign key to User
9
+
10
+ - Sessions store IP and User Agent
10
11
11
12
Installation
12
13
============
@@ -26,13 +27,13 @@ using another session backend, you need to migrate sessions manually.
26
27
27
28
(3) In settings:
28
29
29
- - In ``INSTALLED_APPS `` replace ``'django.contrib.sessions' `` with ``'qsessions' ``.
30
+ - In ``INSTALLED_APPS `` replace ``'django.contrib.sessions' `` with ``'qsessions' ``.
30
31
31
- - In ``MIDDLEWARE `` or ``MIDDLEWARE_CLASSES `` replace
32
- ``'django.contrib.sessions.middleware.SessionMiddleware' `` with
33
- ``'qsessions.middleware.SessionMiddleware' ``.
32
+ - In ``MIDDLEWARE `` or ``MIDDLEWARE_CLASSES `` replace
33
+ ``'django.contrib.sessions.middleware.SessionMiddleware' `` with
34
+ ``'qsessions.middleware.SessionMiddleware' ``.
34
35
35
- - Add ``SESSION_ENGINE = 'qsessions.backends.cached_db' ``.
36
+ - Add ``SESSION_ENGINE = 'qsessions.backends.cached_db' ``.
36
37
37
38
(4) Run migrations to create ``qsessions.models.Session `` model.
38
39
74
75
====
75
76
76
77
- Write better documentation.
77
- - Explain how it works (in summary)
78
- - Explain how to query sessions based on users, and delete sessions
79
- - Add more details to existing documentation.
78
+
79
+ - Explain how it works (in summary)
80
+ - Explain how to query sessions based on users, and delete sessions
81
+ - Add more details to existing documentation.
82
+
80
83
- Write tests (for latest Python and Django versions)
84
+
81
85
- Performance benchmark (and compare with Django's `cached_db `)
82
86
83
87
Contributions are welcome!
89
93
90
94
.. _`configured your cache` : https://docs.djangoproject.com/en/dev/topics/cache/
91
95
.. _`django-user-sessions` : https://github.com/Bouke/django-user-sessions
92
- .. _`Bouke Haarsma` : https://github.com/Bouke
96
+ .. _`Bouke Haarsma` : https://github.com/Bouke
0 commit comments