Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我想让“单击此处”成为一个超链接,单击该超链接会将人们发送到 127.0.0.1。
confirm_links = 'To confirm this order <a href= "127.0.0.1://confirmorder/" > click here </a> '
我认为这通常会起作用,但我正在通过电子邮件发送代码。
from django.core.mail import send_mail send_mail('Subject here', 'Here is the message.', 'from@example.com', ['to@example.com'], fail_silently=False)
或者
你想要这样的东西吗?
<a href="mailto:someone@example.com?Subject=Hello%20again" target="_top">