Add static token to settings
This commit is contained in:
parent
9139b4ffdd
commit
3af63c5ef6
3
Makefile
3
Makefile
|
@ -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"
|
||||||
|
|
|
@ -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 = (
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue