@@ -0,0 +1,646 @@
+from django.contrib.auth.models import User%0Afrom django.core.management import BaseCommand%0A%0A%0Aclass Command(BaseCommand):%0A%0A    def handle(self, *args, **options):%0A        if User.objects.count() == 0:%0A            email = 'admin@mail.com'%0A            user = 'admin'%0A            password = 'admin123456'%0A            admin = User.objects.create_superuser(email=email, username=user, password=password)%0A            admin.is_active = True%0A            admin.is_admin = True%0A            admin.save()%0A            print('Admin accounts successfully created.')%0A%0A        else:%0A            print('Admin accounts can only be initialized if no Accounts exist')%0A

create django command to create admin user, for used with docker