Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added documentation

  • Loading branch information...
commit 072d5e2841c476205bb5157ec15004c483ba8eda 1 parent 3a4af74
Tomáš Ehrlich tricoder42 authored
24 docs/ref/django-admin.txt
View
@@ -1,4 +1,7 @@
=============================
+
+
+..
django-admin.py and manage.py
=============================
@@ -93,8 +96,11 @@ cleanup
.. django-admin:: cleanup
-Can be run as a cronjob or directly to clean out old data from the database
-(only expired sessions at the moment).
+Can be run as a cronjob or directly to clean out old data from the database.
+Right now it only calls :djadmin:`cleansessions` management command from
+``django.contrib.sessions``.
+
+.. versionchanged:: 1.5
compilemessages
---------------
@@ -1199,6 +1205,20 @@ This command is only available if the :doc:`Sitemaps framework
Please refer to its :djadmin:`description <ping_google>` in the Sitemaps
documentation.
+``django.contrib.sessions``
+---------------------------
+
+cleansessions
+~~~~~~~~~~~~~
+
+This command is only available if the :doc:`Sessions </topics/http/sessions>`
+(``django.contrib.sessions``) are installed.
+
+Please refer to its :djadmin:`description <cleansessions>` in the Sessions
+documentation.
+
+.. versionadded:: 1.5
+
``django.contrib.staticfiles``
------------------------------
7 docs/releases/1.5.txt
View
@@ -486,3 +486,10 @@ a User account, this will be an appropriate design pattern to follow. However,
the :setting:`AUTH_PROFILE_MODULE` setting, and the
:meth:`~django.contrib.auth.models.User.get_profile()` method for accessing
the user profile model, should not be used any longer.
+
+Cleaned :djadmin:`cleanup` management command
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This command have contained only expired sessions clean up for years.
+Therefore new command :djadmin:`cleansessions` in ``django.contrib.sessions``
+do the job and :djadmin:`cleanup` command just call it.
16 docs/topics/http/sessions.txt
View
@@ -573,6 +573,22 @@ that is, if any of its dictionary values have been assigned or deleted.
.. _Django settings: ../settings/
+Management commands
+===================
+
+.. highlight:: console
+
+``django.contrib.sessions`` exposes one management commands.
+
+cleansessions
+-------------
+
+.. django-admin:: cleansessions
+
+Cleans expired sessions from database.
+
+.. versionadded:: 1.5
+
Technical details
=================
Please sign in to comment.
Something went wrong with that request. Please try again.