Search code examples
pythondjangopaypal-sandboxdjango-oscar

no such table: paypal_expresstransaction


Problem integrating paypal express in a django oscar store.

Added 'paypal' to installed apps and wrote template with the following code:

{% 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 %}

Upon clicking on the payment button I get this error: no such table: paypal_expresstransaction


Solution

  • Try run migrate with specify app

    ./manage.py makemigrations paypal
    

    and then just migrate.