From 5977d88ed6f86e5b2c165161d95c09f91312394d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 21 Feb 2020 15:24:29 +0100 Subject: [PATCH] Test turbolinks --- note_kfet/settings/base.py | 3 +++ requirements.txt | 2 ++ templates/base.html | 3 +++ 3 files changed, 8 insertions(+) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 410f496f..66acb044 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -55,6 +55,8 @@ INSTALLED_APPS = [ # Autocomplete 'dal', 'dal_select2', + # turbolinks + 'turbolinks', # Note apps 'activity', @@ -75,6 +77,7 @@ MIDDLEWARE = [ 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.sites.middleware.CurrentSiteMiddleware', + 'turbolinks.middleware.TurbolinksMiddleware', ] ROOT_URLCONF = 'note_kfet.urls' diff --git a/requirements.txt b/requirements.txt index 2899ef61..2d377b43 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,9 @@ djangorestframework==3.9.0 django-rest-polymorphic==0.1.8 django-reversion==3.0.3 django-tables2==2.1.0 +django-turbolinks==0.5.1 docutils==0.14 +psycopg2==2.8.4 idna==2.8 oauthlib==3.1.0 Pillow==6.1.0 diff --git a/templates/base.html b/templates/base.html index ba7b4c9e..f881f00e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -149,6 +149,9 @@ SPDX-License-Identifier: GPL-3.0-or-later + {% block extrajavascript %} {% endblock extrajavascript %}