Fix URLs problem with Django 1.6