Aj Toastr use a toster to show django massages in your templates and change options whit superuser any time.
toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.
-
Copy to aj_toast in your django project near other apps
-
install app in your settings.py
INSTALLED_APPS = [ ... 'aj_toast', ]
-
add url in urls.
path('aj_toast/', include('aj_toast.urls'), name='aj_toast'),
-
run the following in a virtual environment:
python manage.py migrate
-
add in template html page you like use massages by toaster.
{% load aj_toast %} {% toast messages %}