Test turbolinks

This commit is contained in:
Yohann D'ANELLO 2020-02-21 15:24:29 +01:00
parent 12d7ddfa30
commit 5977d88ed6
3 changed files with 8 additions and 0 deletions

View File

@ -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'

View File

@ -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

View File

@ -149,6 +149,9 @@ SPDX-License-Identifier: GPL-3.0-or-later
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<script
src="/static/turbolinks/turbolinks.js"
crossorigin="anonymous"></script>
{% block extrajavascript %}
{% endblock extrajavascript %}
</body>