| 1 |
.TH "daily_cleanup.py" "1" "August 2007" "Django Project" "" |
|---|
| 2 |
.SH "NAME" |
|---|
| 3 |
daily_cleanup.py \- Database clean-up for the Django web framework |
|---|
| 4 |
.SH "SYNOPSIS" |
|---|
| 5 |
.B daily_cleanup.py |
|---|
| 6 |
|
|---|
| 7 |
.SH "DESCRIPTION" |
|---|
| 8 |
This script cleans out old data from a Django database. Currently, 'old |
|---|
| 9 |
data' means rows in the django_session table whose expire_date is in |
|---|
| 10 |
the past. |
|---|
| 11 |
.sp |
|---|
| 12 |
The script can be run manually or can be scheduled to run at regular |
|---|
| 13 |
intervals as a |
|---|
| 14 |
.BI cron |
|---|
| 15 |
job. |
|---|
| 16 |
|
|---|
| 17 |
.SH "ENVIRONMENT" |
|---|
| 18 |
.TP |
|---|
| 19 |
.I DJANGO_SETTINGS_MODULE |
|---|
| 20 |
This environment variable defines the settings module to be read. |
|---|
| 21 |
It should be in Python-import form, e.g. "myproject.settings". |
|---|
| 22 |
|
|---|
| 23 |
.SH "SEE ALSO" |
|---|
| 24 |
The sessions documentation: |
|---|
| 25 |
.sp |
|---|
| 26 |
.I http://www.djangoproject.com/documentation/sessions/ |
|---|
| 27 |
|
|---|
| 28 |
.SH "AUTHORS/CREDITS" |
|---|
| 29 |
Originally developed at World Online in Lawrence, Kansas, USA. Refer to the |
|---|
| 30 |
AUTHORS file in the Django distribution for contributors. |
|---|
| 31 |
|
|---|
| 32 |
.SH "LICENSE" |
|---|
| 33 |
New BSD license. For the full license text refer to the LICENSE file in the |
|---|
| 34 |
Django distribution. |
|---|