Rip our final boilerplate

This commit is contained in:
decentral1se 2021-04-07 15:24:07 +02:00
parent 484a897e3c
commit a4f4a1daa2
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
7 changed files with 0 additions and 36 deletions

View File

@ -1,4 +0,0 @@
from django.contrib import admin
from .models import ExampleModel
admin.site.register(ExampleModel)

View File

@ -1,4 +0,0 @@
from django.apps import AppConfig
class DjangoldpExampleConfig(AppConfig):
name = 'djangoldp_example'

View File

@ -1,12 +0,0 @@
import factory
import hashlib
from .models import ExampleModel
from django.db.models.signals import post_save
@factory.django.mute_signals(post_save)
class ExampleFactory(factory.django.DjangoModelFactory):
class Meta:
model = ExampleModel
# Please refer to Factory boy documentation
# https://factoryboy.readthedocs.io

View File

@ -1,12 +0,0 @@
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'))

View File

@ -1,4 +0,0 @@
from django.db import models
class ExampleModel(models.Model):
# Please refer to Django documentation