Html 如何附加/包括

Html 如何附加/包括,html,django,Html,Django,我在index.html中有以下代码行 <form action="" method="POST" id="contact-form">{% csrf_token %} <div class="form-group"> <input type="text" id="form_name" class="form-control" name="name" required="req

我在index.html中有以下代码行

<form action="" method="POST" id="contact-form">{% csrf_token %}

                    <div class="form-group">
                        <input type="text" id="form_name" class="form-control" name="name" required="required"
                            placeholder="Your Full Name"
                            value='{% if submitbutton == "Submit" %} {{ name }} {% endif %}'>
                    </div>

                    <div class="form-group">
                        <input type="email" id="form_email" class="form-control" name="email" required="required"
                            placeholder="abc@email.com"
                            value='{% if submitbutton == "Submit" %} {{ email }} {% endif %}'>
                    </div>

                    <div class="form-group">
                        <textarea name="message" id="form_message" rows="5" class="form-control" required="required"
                            placeholder="Add your message."
                            value='{% if submitbutton == "Submit" %} {{ message }} {% endif %}'></textarea>
                    </div>

                    <input type="submit" class="btn btn-outline-light btn-sm" value="Send Message" name="Submit">

                </form>
现在,我希望在收到电子邮件时,在姓名(主题)之前添加新的查询来源:

我该怎么做呢。可能吗

提前谢谢你

更改此行

send_mail( name, message, email, ['cmadiam@ruthlymtspmuandaesthetics.com'], fail_silently=False)


你真的不知道如何组合两个字符串吗?@DanielRoseman我正在尝试,但我真的不知道。在我将问题发布到这里之前,我已经尝试过了,但我遇到了一个错误。可能是语法或打字错误。但是当你再次尝试你的建议时,它是有效的。非常感谢。
send_mail( name, message, email, ['cmadiam@ruthlymtspmuandaesthetics.com'], fail_silently=False)
send_mail( "New Inquiry from: " + name, message, email, ['cmadiam@ruthlymtspmuandaesthetics.com'], fail_silently=False)