没有这样的表:paypal_expresstransaction

时间:2016-11-06 23:48:09

标签: 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

1 个答案:

答案 0 :(得分:4)

尝试使用指定应用

运行迁移
./manage.py makemigrations paypal

然后只迁移。