Django 1.6 changed the import of url

Fix the same bug as #9, but with a try-exceot