From e341d7a857f0f5784b5af6684543fc15034726c3 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 13 Nov 2013 03:31:59 +0100 Subject: [PATCH] add docs for manage testuser, add user crontab --- docs/admin.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/admin.rst b/docs/admin.rst index 65fd33d..791e625 100644 --- a/docs/admin.rst +++ b/docs/admin.rst @@ -74,11 +74,19 @@ Run these commands regularly:: # clear expired sessions from the database, use your correct settings module: django-admin.py clearsessions --settings=local_settings + # reinitialize the test user: + django-admin.py testuser --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. +Here's a user crontab:: + + DJANGO_SETTINGS_MODULE=local_settings + 50 2 * * * django-admin.py testuser + 0 3 * * 1 django-admin.py clearsessions + Configuration =============