add django old and new version urls 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.