The decorator @check_csrf can be used to check CSRF protection when using GET links (like delete a post or logout)