add docs for manage testuser, add user crontab
This commit is contained in:
parent
7930adc596
commit
e341d7a857
@ -74,11 +74,19 @@ Run these commands regularly::
|
|||||||
|
|
||||||
# clear expired sessions from the database, use your correct settings module:
|
# clear expired sessions from the database, use your correct settings module:
|
||||||
django-admin.py clearsessions --settings=local_settings
|
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
|
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
|
crontab -e to create a cronjob that runs as the same user as the nsupdate.info
|
||||||
wsgi application.
|
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
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
Loading…
x
Reference in New Issue
Block a user