Show message after password change?
问题 I'm using the default change password mechanism provided by django. I'm using post_change_redirect to have the submitted form go straight back to my settings page, however I'd like to show a message to reassure the user that the operation has been successful. How can I detect whether I'm arriving in my settings view as the result of a successful password change, and add a message to that effect? 回答1: I wouldn't recommend checking in the settings view whether a user has arrived via a password