From 3af63c5ef610a80274e5fdcbeab4b82cd0973236 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 16 Oct 2022 13:36:17 +0100 Subject: [PATCH] Add static token to settings --- Makefile | 5 ++++- app/settings.py | 2 +- core/templates/partials/hook-list.html | 2 +- core/templates/window-content/callbacks.html | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 50287a0..1f8c43a 100644 --- a/Makefile +++ b/Makefile @@ -14,4 +14,7 @@ migrate: docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py migrate" makemigrations: - docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations" \ No newline at end of file + docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py makemigrations" + +auth: + docker-compose -f docker/docker-compose.prod.yml --env-file=stack.env run --rm app sh -c ". /venv/bin/activate && python manage.py createsuperuser" diff --git a/app/settings.py b/app/settings.py index 15a7a93..8da128d 100644 --- a/app/settings.py +++ b/app/settings.py @@ -46,7 +46,7 @@ INSTALLED_APPS = [ "django_otp", "django_otp.plugins.otp_totp", # 'django_otp.plugins.otp_hotp', - # 'django_otp.plugins.otp_static', + "django_otp.plugins.otp_static", ] CRISPY_TEMPLATE_PACK = "bulma" CRISPY_ALLOWED_TEMPLATE_PACKS = ( diff --git a/core/templates/partials/hook-list.html b/core/templates/partials/hook-list.html index 3b2aa3a..14f6f9c 100644 --- a/core/templates/partials/hook-list.html +++ b/core/templates/partials/hook-list.html @@ -42,7 +42,7 @@ -