2 A script which removes expired/inactive user accounts from the
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
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.
17 if __name__
== '__main__':
18 from registration
.models
import RegistrationProfile
19 RegistrationProfile
.objects
.delete_expired_users()