django-intercoolerjs
django-intercoolerjs copied to clipboard
Django wrapper for intercooler.js - AJAX With Attributes: There is no need to be complex.
[Django is expecting a CSRF token](https://docs.djangoproject.com/en/1.10/ref/csrf/) with POST requests to prevent Cross Site Request Forgeries. This also includes AJAX POST requests. With a normal form this looks like this: ```...
Could you provide more examples like the ones in the intercooler website? I saw the demo but I would like to unterstand exactly how could I use the package.
Using a middleware to detect a intercooler.js request analog to `is_ajax`. It would probably be enough to check for `HTTP_X_IC_REQUEST` and `is_ajax`.