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 =============