我正在使用该django-paypal库在我的网站上使用PayPal付款.
按照示例,我设置paypal_dict并添加了表单.
paypal_dict = {
"business": settings.PAYPAL_RECEIVER_EMAIL,
"amount": "10000000.00",
"item_name": "name of the item",
"invoice": "unique-invoice-id",
"notify_url": "https://www.example.com" + reverse('paypal-ipn'),
"return_url": "https://www.example.com/your-return-location/",
"cancel_return": "https://www.example.com/your-cancel-location/",
}
Run Code Online (Sandbox Code Playgroud)
但是,我收到错误,global name 'reverse' is not defined我正在使用Python 2.7.9,发生了什么?
我最近把我的Django网站投入生产,我已经关闭了调试.我还配置了ADMINS设置,以便在发生任何错误时通知我.
在我的settings.py中,我有以下内容:
ADMINS = (('Foo', 'bar@example.com'))
我使用Zoho发送电子邮件.当我注意到我没有收到任何东西时,我检查了他们网站上的"已发送"文件夹.它正在尝试发送电子邮件给<r>, <n>
为什么我的姓名和电子邮件没有被解析,我该怎么做才能解决它?