Initial commit

This commit is contained in:
Nicolas Mérigot
2019-01-11 15:15:11 +01:00
commit 39d3f304e5
15 changed files with 174 additions and 0 deletions

View File

View File

@ -0,0 +1,12 @@
from django.core.management.base import BaseCommand, CommandError
from djangoldp_example.factories import ExampleFactory
class Command(BaseCommand):
help = 'Mock data'
def add_arguments(self, parser):
parser.add_argument('--size', type=int, default=0, help='Number of example to create')
def handle(self, *args, **options):
ExampleFactory.create_batch(options['size'], thread=thread)
self.stdout.write(self.style.SUCCESS('Successful data mock install'))