Change the URL importing for compatible with Django 1.5+