django-turbolinks
Drop-in turbolinks implementation for Django
Installation
$ pip install django-turbolinks
Configuration
- 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.