diff --git a/bsmain/management/commands/create_auth_token.py b/bsmain/management/commands/create_auth_token.py new file mode 100644 index 0000000..10e3c1d --- /dev/null +++ b/bsmain/management/commands/create_auth_token.py @@ -0,0 +1,11 @@ +from django.core.management.base import BaseCommand + +from bsmain.models import AuthToken + + +class Command(BaseCommand): + help = "Creates an auth_token and prints it on screen""" + + def handle(self, *args, **options): + auth_token = AuthToken.objects.create() + print(auth_token.token)