Our Django Sweet Alerts are beautiful, responsive, customisable, accessible replacements for Javascript’s popup boxes. Keep reading our Django Alerts examples and learn how to use this plugin.
Usage
CSS
In order to use this plugin on your page you will need to include the following styles in the “Page plugins” area from the page’s head section:
JS
In order to use this plugin on your page you will need to include the following script in the “Optional JS” area from the page’s footer:
Initialization
SweetAlert2 automatically centers itself on the page and looks great no matter if you’re using a desktop computer, mobile or tablet. It’s even highly customizeable, as you can see below!