Loading services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py +1 −12 Original line number Diff line number Diff line Loading @@ -7,17 +7,6 @@ class Command(BaseCommand): def handle(self, *args, **options): #===================== # Admin #===================== try: User.objects.get(username='admin') print('Not creating admin user as it already exist') except User.DoesNotExist: print('Creating admin user with default password') admin = User.objects.create_superuser('admin', 'admin@example.com', 'admin') Profile.objects.create(user=admin) #===================== # Testuser Loading Loading
services/webapp/code/rosetta/core_app/management/commands/core_app_populate.py +1 −12 Original line number Diff line number Diff line Loading @@ -7,17 +7,6 @@ class Command(BaseCommand): def handle(self, *args, **options): #===================== # Admin #===================== try: User.objects.get(username='admin') print('Not creating admin user as it already exist') except User.DoesNotExist: print('Creating admin user with default password') admin = User.objects.create_superuser('admin', 'admin@example.com', 'admin') Profile.objects.create(user=admin) #===================== # Testuser Loading