没有这样的表:paypal_expresstransaction

问题描述 投票:1回答:1

在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

python django paypal-sandbox django-oscar
1个回答
4
投票

尝试使用指定app运行迁移

./manage.py makemigrations paypal

然后只是迁移。

© www.soinside.com 2019 - 2024. All rights reserved.