python - 没有这样的表 : paypal_expresstransaction

标签 python django paypal-sandbox django-oscar

在 django oscar 商店中集成 paypal express 时出现问题。

为已安装的应用程序添加“paypal”并使用以下代码编写模板:

{% extends 'oscar/checkout/payment_details.html' %}
{% load i18n %}

{% block payment_details %}
    <div class="well">
        <div class="sub-header">
        <h3>{% trans "PayPal Express" %}</h3>
    </div>
    <p>{% trans "Click on the below icon to use Express Checkout but where the shipping address and method is already chosen on the merchant site." %}</p>
    <div style="overflow:auto"><a href="{% url 'paypal-direct-payment' %}" title="{% trans "Pay with PayPal" %}"><img src="https://www.paypal.com/en_US/i/logo/PayPal_mark_37x23.gif" align="left" style="margin-right:7px;"></a>&nbsp;</div>
 </div>
{% endblock %}

点击付款按钮后,出现此错误: 没有这样的表:paypal_expresstransaction

最佳答案

尝试使用指定应用程序运行迁移

./manage.py makemigrations paypal

然后迁移。

关于python - 没有这样的表 : paypal_expresstransaction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40455868/

相关文章:

python - Python2.6语法错误

python - 不能在 OpenCV 中使用 SURF、SIFT

c# - 带有信用卡支付方式的 Paypal Rest API

paypal-ipn - 本地主机中的 Paypal 沙盒测试工具 IPN 模拟器

python - 合并来自多个excel的一张表的数据

python - 让python脚本在http简单服务器中运行

Python错误: No handlers could be found for logger “xhtml2pdf”

python - 在 Django 中跨列聚合

python - 将外键记录链接到 Django Admin 中的详细 View ?

php - 从 SetExpressCheckout 获取金额