mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[1.5.x] Fixed #18978 -- Moved cleanup command to sessions.
This removes a dependency of 'core' on 'contrib'.
Backport of 83ba0a9
from master.
This deprecation occurs after the alpha, but it's a prerequisite
for fixing decently #18194 which is a release blocker.
This commit is contained in:
parent
15ea36dfc0
commit
b760503a27
9 changed files with 59 additions and 11 deletions
|
@ -460,7 +460,7 @@ table. Django updates this row each time the session data changes. If the user
|
|||
logs out manually, Django deletes the row. But if the user does *not* log out,
|
||||
the row never gets deleted.
|
||||
|
||||
Django provides a sample clean-up script: ``django-admin.py cleanup``.
|
||||
Django provides a sample clean-up script: ``django-admin.py clearsessions``.
|
||||
That script deletes any session in the session table whose ``expire_date`` is
|
||||
in the past -- but your application may have different requirements.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue