omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

Import error in django_example #1058

Closed shivamMg closed 7 years ago

shivamMg commented 8 years ago

The following error occurs when running the django_example:

ImportError: cannot import name 'patterns'

This occurs because requirements specify django>=1.4 and it installs the latest version of django (1.10.x). patterns are not available after 1.8. The django version in requirements.txt must be freezed to django>=1.4,<1.8, where it installs django-1.7.11, and patterns are available.

Or, we can alter the code to be compatible with django-1.10.x. If someone gives a go ahead i would like to work on this.

https://docs.djangoproject.com/en/1.10/releases/1.8/#django-conf-urls-patterns

WGierke commented 8 years ago

Go ahead! :)

omab commented 7 years ago

This got fixed already.