kplaube/django-simple-contact — pull request #1 by jorgerc (2013-04-23 12:34:24+00:00)
Title: DeprecationWarning with django.conf.urls.defaults

With Django >= 1.4, a *DeprecationWarning*: is shown when using *django.conf.urls.defaults*:

> DeprecationWarning: django.conf.urls.defaults is deprecated; use django.conf.urls instead

From Django 1.6 on, *django.conf.urls.defaults* will no longer exist. This patch changes that import with the new one, which is *django.conf.urls*.

More information:

> django.conf.urls.defaults will be removed. The functions include(), patterns() and url() plus handler404, handler500, are now available through django.conf.urls.

(via https://docs.djangoproject.com/en/dev/internals/deprecation/)