diff --git a/core/management/commands/set_key.py b/core/management/commands/set_key.py new file mode 100644 index 00000000..e90140ec --- /dev/null +++ b/core/management/commands/set_key.py @@ -0,0 +1,11 @@ +from django.core.management.base import BaseCommand +from regluit.core.models import Key + +class Command(BaseCommand): + help = "set a core.models.Key with name value" + args = " " + + def handle(self, name, value, **options): + k = Key.objects.create(name=name, value=value) + k.save() +