I have a code line in my views.py:
return render_to_response('errorInsertingData', message='Save isnt complete')
and the templete errorInsertingData.html
code:
<script>
alert('{{ message }}');
</script>
Why do I get an error:
render_to_string() got an unexpected keyword argument 'message'
my goal is to get the msg 'Save isnt complete' as a popup / msg box.