2 ms·
I have also thought about adding Turbolinks and Stimulus to a Django project. Can tell more about the changes to the middleware and webpack?
by sknzl 6y ago
I have also thought about adding Turbolinks and Stimulus to a Django project. Can tell more about the changes to the middleware and webpack?
- danjac 6y agohttps://gitlab.com/danjac/localhub/-/blob/master/social_bfg/common/middleware/turbolinks.py https://gitlab.com/danjac/localhub/-/blob/master/social_bfg/... IIRC there were some old packages but these were unmaintained and didn't work with later versions of Turbolinks, so I ended up looking at Rails source and other examples. Basically making sure to handle redirects and headers correctly. You can see the webpack config in the same project, pretty much just standard setup with some tweaks for loading Stimulus controllers.