Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discrepancy with application.urls #71

Closed
natea opened this issue May 9, 2014 · 1 comment
Closed

Discrepancy with application.urls #71

natea opened this issue May 9, 2014 · 1 comment

Comments

@natea
Copy link

natea commented May 9, 2014

I'm using Oscar Commerce 0.7.1 and django-oscar-paypal 0.9, and when I follow the instructions here:

http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html#urls

It says to import application from oscar.app:

from oscar.app import application

urlpatterns = [
    ...
    url(r'', include(application.urls))
]

But the django-oscar-paypal also imports application, as instructed here:
http://django-oscar-paypal.readthedocs.org/en/latest/express.html#getting-started

...

from paypal.express.dashboard.app import application

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r'^checkout/paypal/', include('paypal.express.urls')),
    # Optional
    (r'^dashboard/paypal/express/', include(application.urls)),
    (r'', include(shop.urls)),

If I remove the line (r'^dashboard/paypal/express/', include(application.urls)), then the site works but when I get to the payment details page it says that it hasn't been implemented yet, and the PayPal section doesn't appear in the dashboard.

If I remove from oscar.app import application, then I get an 404 page not found error.

Is there an example Oscar Commerce site that has successfully implemented PayPal that I can take a look at to compare it with what I have?

@natea
Copy link
Author

natea commented May 9, 2014

I found the sandbox site which explains how to set up the URLs properly.

@natea natea closed this as completed May 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant