Fixed #18978 -- Moved cleanup command to sessions.

This removes a dependency of 'core' on 'contrib'.
This commit is contained in:
Aymeric Augustin 2012-10-27 11:49:46 +02:00
parent 908efca817
commit 83ba0a9d4b
9 changed files with 59 additions and 11 deletions

View file

@ -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``
---------------------------