Django 4.1.0

This commit is contained in:
Casper V. Kristensen 2022-08-13 14:29:59 +02:00
parent 7d036584de
commit 15632b3b47
3 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,6 @@ WSGI_APPLICATION = "drakul.base.wsgi.application"
# https://docs.djangoproject.com/en/2.2/ref/middleware/#module-django.middleware.security
X_FRAME_OPTIONS = "DENY"
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
# Templates
# https://docs.djangoproject.com/en/2.2/ref/settings/#templates

View file

@ -33,6 +33,7 @@
</div>
{% if user.is_authenticated %}
<span class="navbar-text">Logged in as <a class="font-weight-bold" href="{% url 'user_profile' %}">{{ user.username }}</a></span>
{# TODO: https://docs.djangoproject.com/en/4.1/releases/4.1/#log-out-via-get #}
<a class="btn btn-outline-danger ml-3" role="button" href="{% url 'logout' %}">Log Out</a>
{% else %}
<a class="btn btn-outline-info mr-1" role="button" href="{% url 'signup' %}">Sign Up</a>

View file

@ -1,4 +1,4 @@
Django==3.2.15
psycopg2-binary>=2.5.4 # required by Django for PostgreSQL support: https://docs.djangoproject.com/en/2.2/ref/databases/#postgresql-notes
Django==4.1.0
psycopg2-binary>=2.8.4 # required by Django for PostgreSQL support: https://docs.djangoproject.com/en/4.1/ref/databases/#postgresql-notes
djangorestframework==3.13.1
django-crispy-forms==1.14.0