In routes.py make the necessary import: from flask import flash
In routes.py these errors need to be caught and displayed in a flash message or some other format to display to the user, here is an example from a previous project:
In layout.html or create.html display the flash messages, here is an example from a previous project:
Errors are raised in forms.py and maps.py
In routes.py make the necessary import: from flask import flash
In routes.py these errors need to be caught and displayed in a flash message or some other format to display to the user, here is an example from a previous project:
In layout.html or create.html display the flash messages, here is an example from a previous project: