second commit

This commit is contained in:
denis
2026-03-10 13:10:32 +01:00
parent b5cc0106c6
commit 3aac7ff9b9
101 changed files with 22046 additions and 1 deletions
@@ -0,0 +1,21 @@
#
# encoding: utf-8
from uuid import uuid4
from django.core.management import BaseCommand
from django.core.management.utils import get_random_string;
class Command(BaseCommand):
def add_arguments(self, parser):
super().add_arguments(parser)
parser.add_argument("--app", type=str, default='django', help=f"Default application django/reductstore")
def handle(self, *args, **options):
if options.get('app')=='django':
chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#€%^&*(-_=+)"
sk = get_random_string(50, chars)
print(f'django-insecure-{sk}')
elif options.get('app')=='reductstore':
print(f'monitor-{uuid4()}')