Add static token to settings

This commit is contained in:
Mark Veidemanis 2022-10-16 13:36:17 +01:00
parent 9139b4ffdd
commit 3af63c5ef6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
4 changed files with 8 additions and 5 deletions

View File

@ -15,3 +15,6 @@ migrate:
makemigrations: 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" 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"

View File

@ -46,7 +46,7 @@ INSTALLED_APPS = [
"django_otp", "django_otp",
"django_otp.plugins.otp_totp", "django_otp.plugins.otp_totp",
# 'django_otp.plugins.otp_hotp', # 'django_otp.plugins.otp_hotp',
# 'django_otp.plugins.otp_static', "django_otp.plugins.otp_static",
] ]
CRISPY_TEMPLATE_PACK = "bulma" CRISPY_TEMPLATE_PACK = "bulma"
CRISPY_ALLOWED_TEMPLATE_PACKS = ( CRISPY_ALLOWED_TEMPLATE_PACKS = (

View File

@ -42,7 +42,7 @@
</span> </span>
</span> </span>
</button> </button>
<a href="{% url 'callbacks' type='page' hook_id=item.id %}"><button <a href="{% url 'callbacks' type='{{ type }}' hook_id=item.id %}"><button
class="button is-success"> class="button is-success">
<span class="icon-text"> <span class="icon-text">
<span class="icon"> <span class="icon">

View File

@ -5,7 +5,7 @@
<th>id</th> <th>id</th>
<th>hook id</th> <th>hook id</th>
<th>hook name</th> <th>hook name</th>
<th>data</th> <th>title</th>
<th>actions</th> <th>actions</th>
</thead> </thead>
{% for item in items %} {% for item in items %}
@ -20,7 +20,7 @@
hx-target="#modals-here">{{ item.hook.name }} hx-target="#modals-here">{{ item.hook.name }}
</a> </a>
</td> </td>
<td><pre>{{ item.data }}</pre></td> <td><pre>{{ item.title }}</pre></td>
<td> <td>
<div class="buttons"> <div class="buttons">