Add static token to settings

Mark Veidemanis 2 years ago
parent 9139b4ffdd
commit 3af63c5ef6
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -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"
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"

@ -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 = (

@ -42,7 +42,7 @@
</span>
</span>
</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">
<span class="icon-text">
<span class="icon">

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

Loading…
Cancel
Save