Use functools.update_wrapper for Django 1.6+ / Python 2.5+
Don't use deprecated django.conf.urls.defaults unless django.conf.urls fails

This is necessary for Django 1.6 compatibility (the deprecated package is gone)