Compare commits
2 commits
a3790bfc1a
...
15632b3b47
Author | SHA1 | Date | |
---|---|---|---|
Casper V. Kristensen | 15632b3b47 | ||
Casper V. Kristensen | 7d036584de |
|
@ -15,11 +15,11 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fil
|
|||
# The application listed first has precedence. List django apps last to allow overriding.
|
||||
INSTALLED_APPS = (
|
||||
# Local apps
|
||||
"drakul.authentication.apps.AuthenticationConfig",
|
||||
"drakul.base.apps.BaseConfig",
|
||||
"drakul.bank.apps.BankConfig",
|
||||
"drakul.raids.apps.RaidsConfig",
|
||||
"drakul.users.apps.UsersConfig",
|
||||
"drakul.authentication",
|
||||
"drakul.base",
|
||||
"drakul.bank",
|
||||
"drakul.raids",
|
||||
"drakul.users",
|
||||
|
||||
# Third party apps
|
||||
"rest_framework",
|
||||
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Django==3.1.1
|
||||
psycopg2-binary>=2.5.4 # required by Django for PostgreSQL support: https://docs.djangoproject.com/en/2.2/ref/databases/#postgresql-notes
|
||||
djangorestframework==3.12.1
|
||||
django-crispy-forms==1.9.2
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue