問題タブ [django-messages]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - ページではなく管理サイトに出力されたdjangoの成功メッセージ
1.11.1 から 1.11.4 へのバージョン アップグレード後、成功メッセージはページではなく管理サイトに表示されます。何を変えなければならない...
django - Django messages success message with data from submitted form
I've got Messages up and running; I can get a simple "submission successful" message to work so I know the context_processors
and middleware are all configured properly. However, I'm trying to dynamically update the success message with data submitted in the form.
Here is my views.py
:
I'm trying to get success_message
to display when the user submits the form, populating the message with the data they entered. I've read through a dozen answers here on SO, but can't seem to find the right info to connect the last dots.
Here's my template:
I know I'm missing something, but I'm not sure what.