diff --git a/api/migrations/0002_auto_20200731_0904.py b/api/migrations/0002_auto_20200731_0904.py index a92aeba4..cd5be022 100644 --- a/api/migrations/0002_auto_20200731_0904.py +++ b/api/migrations/0002_auto_20200731_0904.py @@ -1,6 +1,6 @@ # Generated by Django 3.0.8 on 2020-07-22 06:41 import os -from django.db import migrations, models +from django.db import migrations from django.utils.translation import gettext_lazy as _ @@ -13,8 +13,8 @@ class Migration(migrations.Migration): def generate_superuser(apps, schema_editor): from django.contrib.auth.models import User superuser = User.objects.create_superuser( - username='admin', - password=os.environ.get('DJANGO_SU_EMAIL', 'admin')) + username=os.environ.get('ADMIN_USERNAME', 'admin'), + password=os.environ['ADMIN_PASSWORD']) superuser.save()