1 from django.core.management.base import NoArgsCommand
2 from forum.models import User
5 class Command(NoArgsCommand):
6 def handle_noargs(self, **options):
9 print 'to run this command, please first edit the file %s' % __file__
11 for u in User.objects.all():
12 u.message_set.create(message = msg % u.username)