1234567891011121314 |
- from django.core.management.base import BaseCommand
- from dbsynce.lib.seed import create_test_users
- class Command(BaseCommand):
- help = "My shiny new management command."
- def handle(self, *args, **options):
- self.stdout.write(self.style.SUCCESS('Start seeding'))
- create_test_users()
- self.stdout.write(self.style.SUCCESS('Successful seeding'))
- # raise NotImplementedError()
|