Drop-in turbolinks implementation for Django
$ pip install django-turbolinks
- Add
turbolinks.middleware.TurbolinksMiddleware
afterdjango.contrib.sessions.middleware.SessionMiddleware
to yourMIDDLEWARE_CLASSES
setting. - Add
turbolinks
to yourINSTALLED_APPS
setting. - Run
./manage.py collectstatic
- Include
/static/turbolinks/turbolinks.js
script in your base template.