as is a reserved keyword now, upadting ikog
[worddb.git] / libs / registration / bin / delete_expired_users.py
blob87bd97f13c41f77e76d823ba2c8c7a85ece4d3db
1 """
2 A script which removes expired/inactive user accounts from the
3 database.
5 This is intended to be run as a cron job; for example, to have it run
6 at midnight each Sunday, you could add lines like the following to
7 your crontab::
9 DJANGO_SETTINGS_MODULE=yoursite.settings
10 0 0 * * sun python /path/to/registration/bin/delete_expired_users.py
12 See the method ``delete_expired_users`` of the ``RegistrationManager``
13 class in ``registration/models.py`` for further documentation.
15 """
17 if __name__ == '__main__':
18 from registration.models import RegistrationProfile
19 RegistrationProfile.objects.delete_expired_users()