From 4205172942d1dc3f91c895d081ca35805c77fc91 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 13 Nov 2013 01:21:24 +0100 Subject: [PATCH] document clearsessions usage --- docs/admin.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/admin.rst b/docs/admin.rst index d3ae131..65fd33d 100644 --- a/docs/admin.rst +++ b/docs/admin.rst @@ -68,6 +68,17 @@ applies to the django version YOU use): https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/ +Regular jobs +------------ +Run these commands regularly:: + + # clear expired sessions from the database, use your correct settings module: + django-admin.py clearsessions --settings=local_settings + +To run these commands regularly on Linux (or other POSIX OSes), you can use +crontab -e to create a cronjob that runs as the same user as the nsupdate.info +wsgi application. + Configuration =============