mozilla / django-browserid

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

Use the new style urlpatterns syntax to fix Django deprecation warnings #295

Closed edmorley closed 8 years ago

edmorley commented 8 years ago

The patterns() syntax is now deprecated: https://docs.djangoproject.com/en/1.8/releases/1.8/#django-conf-urls-patterns

And so under Django 1.8 results in warnings:

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.

Fixes #294.

Osmose commented 8 years ago

r+, looks great. Thanks for the fix!

I'll include this in the release after Django 1.9 goes out and we add "official" support for it.

edmorley commented 8 years ago

Sounds good - thank you :-)