Rename command.

This commit is contained in:
Antoine Nguyen
2015-04-16 15:32:21 +02:00
parent 8d4ff7bc71
commit 063756461b
+3 -3
View File
@@ -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 * * * <modoboa_site>/manage.py cleanup
#
# Or like this if you use a virtual environment:
# 0 0 * * * <virtualenv path/bin/python> <modoboa_site>/manage.py cleanup
# 0 0 * * * <virtualenv path/bin/python> <modoboa_site>/manage.py clearsessions