awesto / djangoshop-stripe

Stripe Payment Provider Integration for django-shop
MIT License
12 stars 9 forks source link

django.conf.urls patterns() removed in django 1.10 #2

Closed racitup closed 8 years ago

racitup commented 8 years ago

Hi just trying using django-shop with django 1.10 and got the error:

File "/Users/rich/.pyenv/versions/3.5.2/lib/python3.5/site-packages/shop_stripe/payment.py", line 7, in from django.conf.urls import patterns ImportError: cannot import name 'patterns'

This can be fixed (I think) by returning an empty list from get_urls(self) and removing the import:

--from django.conf.urls import patterns

-- return patterns('') ++ return []

Thanks for the great work on django shop by the way! This is my first website so struggling at the moment, but from what I've seen (the requirements list) it looks very comprehensive!

jrief commented 8 years ago

This has been fixed in version 0.2.0. Thanks for reporting.