mozilla / django-browserid

Django application for adding BrowserID support.
Mozilla Public License 2.0
179 stars 80 forks source link

Django 1.8+ deprecation warning for urlpatterns in urls.py:28 #294

Closed edmorley closed 8 years ago

edmorley commented 8 years ago

Using django-browserid v1.0.0 with Django v1.8.7, and running python -Wall manage.py runserver then loading the site in the browser, I see this deprecation warning in the console:

.../site-packages/django_browserid/urls.py:28: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
  url(r'^browserid/csrf/$', views.CsrfToken.as_view(), name='browserid.csrf'),

urlpatterns here: https://github.com/mozilla/django-browserid/blob/v1.0.1/django_browserid/urls.py#L25

...needs updating according to: https://docs.djangoproject.com/en/1.8/releases/1.8/#django-conf-urls-patterns