From 94d4ddc01cf095d5a388d95fb827115e1355adfc Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 22 Feb 2024 14:58:52 +0100 Subject: [PATCH] add KEY_DID as env var --- idhub/management/commands/initial_datas.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/idhub/management/commands/initial_datas.py b/idhub/management/commands/initial_datas.py index 236c8ab..40cfa8b 100644 --- a/idhub/management/commands/initial_datas.py +++ b/idhub/management/commands/initial_datas.py @@ -5,13 +5,12 @@ import json from pathlib import Path from utils import credtools from django.conf import settings -from django.core.management.base import BaseCommand, CommandError +from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from django.core.cache import cache from decouple import config from idhub.models import DID, Schemas from oidc4vp.models import Organization -from promotion.models import Promotion User = get_user_model() @@ -23,7 +22,7 @@ class Command(BaseCommand): def handle(self, *args, **kwargs): ADMIN_EMAIL = config('ADMIN_EMAIL', 'admin@example.org') ADMIN_PASSWORD = config('ADMIN_PASSWORD', '1234') - KEY_DIDS = config('KEY_DIDS', '1234') + KEY_DIDS = config('KEY_DIDS') cache.set("KEY_DIDS", KEY_DIDS, None) self.create_admin_users(ADMIN_EMAIL, ADMIN_PASSWORD)