Fix logout redirect

This commit is contained in:
Mark Veidemanis 2022-07-21 13:49:43 +01:00
parent b9fda0d654
commit 877396f149
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
4 changed files with 32 additions and 13 deletions

View File

@ -31,13 +31,13 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
"core",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"core",
"crispy_forms",
"crispy_bulma",
]
@ -126,7 +126,9 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
AUTH_USER_MODEL = "core.User"
LOGIN_REDIRECT_URL = "/"
LOGIN_REDIRECT_URL = "home"
LOGOUT_REDIRECT_URL = "home"
LOGIN_URL = "/accounts/login/"
# ALLOWED_PAYMENT_METHODS = ["bacs_debit", "card"]
ALLOWED_PAYMENT_METHODS = ["card"]

View File

@ -1,5 +1,6 @@
{% extends "base.html" %}
{% block content %}
<div class="box">
<h1 class="title">Pathogen Data Insights</h1>
<div class="container">
<h2 class="subtitle">Welcome to the Neptune system</h2>
@ -7,4 +8,5 @@
<h2 class="subtitle">Hello!</h2>
</div>
</div>
</div>
{% endblock %}

View File

View File

@ -118,12 +118,27 @@
</table>
</div>
</div>
<div class="box">
<div class="columns">
<div class="column">
<p>{{ card }} hits</p>
</div>
{% if redacted != 0 %}
<div class="column">
<p>{{ redacted }} redacted</p>
{% if exemption is not None %}
<p>redaction overriden by superuser</p>
</div>
{% endif %}
{% if exemption is not None %}
<div class="column">
<p>god mode</p>
</div>
{% endif %}
<div class="column">
<p>{{ took }}ms</p>
</div>
</div>
</div>
{% endif %}
{% endblock %}