From 063756461b4ee6f3f785896b81af4704e6a3ccc2 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 16 Apr 2015 15:32:21 +0200 Subject: [PATCH] Rename command. --- doc/getting_started/configuration.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/getting_started/configuration.rst b/doc/getting_started/configuration.rst index 47bd74de7..940303e9a 100644 --- a/doc/getting_started/configuration.rst +++ b/doc/getting_started/configuration.rst @@ -338,12 +338,12 @@ Django does not provide automatic purging. Therefore, it's your job to purge expired sessions on a regular basis. Django provides a sample clean-up script: ``django-admin.py -cleanup``. That script deletes any session in the session table whose -``expire_date`` is in the past. +clearsessions``. That script deletes any session in the session table +whose ``expire_date`` is in the past. For example, you could setup a cron job to run this script every night:: 0 0 * * * /manage.py cleanup # # Or like this if you use a virtual environment: - # 0 0 * * * /manage.py cleanup + # 0 0 * * * /manage.py clearsessions