Skip to content
Snippets Groups Projects
Commit 20a35eaa authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Removed creating the admin user in the populate script.

parent f4fb4ab1
No related branches found
No related tags found
No related merge requests found
...@@ -7,17 +7,6 @@ class Command(BaseCommand): ...@@ -7,17 +7,6 @@ class Command(BaseCommand):
def handle(self, *args, **options): 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 # Testuser
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment