add django 1.6 compatibility

In Django==1.6 django.conf.urls.defaults removed. The functions include(), patterns() and url() plus handler404, handler500, are now available through django.conf.urls . So i added workaround to save compatibility with old and new django versions.