mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +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
|
@ -96,6 +96,9 @@ cleanup
|
|||
Can be run as a cronjob or directly to clean out old data from the database
|
||||
(only expired sessions at the moment).
|
||||
|
||||
.. versionchanged:: 1.5
|
||||
:djadmin:`cleanup` is deprecated. Use :djadmin:`clearsessions` instead.
|
||||
|
||||
compilemessages
|
||||
---------------
|
||||
|
||||
|
@ -1187,6 +1190,18 @@ This command is only available if :doc:`GeoDjango </ref/contrib/gis/index>`
|
|||
Please refer to its :djadmin:`description <ogrinspect>` in the GeoDjango
|
||||
documentation.
|
||||
|
||||
``django.contrib.sessions``
|
||||
---------------------------
|
||||
|
||||
clearsessions
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
.. django-admin:: clearsessions
|
||||
|
||||
Can be run as a cron job or directly to clean out expired sessions.
|
||||
|
||||
This is only supported by the database backend at the moment.
|
||||
|
||||
``django.contrib.sitemaps``
|
||||
---------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue