First error: Tera error: Failed to render 'token.html' and then another error occured generating HTML: Failed to render '500.html' (error happened in a parent template)