add key for open service #9

Merged
pedro merged 6 commits from open_service into release 2025-01-30 12:38:58 +00:00
Showing only changes of commit 48cb351263 - Show all commits

View file

@ -0,0 +1,15 @@
from django.core.management.base import BaseCommand
from django.core.management import call_command
from django.core.cache import cache
class Command(BaseCommand):
help = "Command for open de service"
def add_arguments(self, parser):
parser.add_argument('key', nargs='?', default='', type=str, help='key')
def handle(self, *args, **kwargs):
PASSWORD = kwargs["key"]
cache.set("KEY_DIDS", PASSWORD, None)
call_command('runserver')