Update all urlpatterns to be compatible with modern Django.
Review Request #8679 — Created Jan. 29, 2017 and submitted — Latest diff uploaded
Older versions of Django (including 1.6) provided a
patterns()method
to normalize a list of URL patterns, which includedurl()entries
and tuples. Modern versions simplify all this, requiring the use of
url(), and removedpatterns().This change updates all URL patterns in Djblets to use
url()and lists,
providing compatibility with Django 1.6 and higher.
Unit tests pass under Django 1.6. URL-related operations are no longer
failing under Django 1.10 (at least with the tests I've been able to run
so far).