compatibility for Django version>1.5

removes usage of deprecated urls.defaults module when Django version > 1.5. Checks Django version so it remains backwards compatible. Successfully ran follow tests.