mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #18978 -- Moved cleanup command to sessions.
This removes a dependency of 'core' on 'contrib'.
This commit is contained in:
parent
908efca817
commit
83ba0a9d4b
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