Use django.view.generic to refact view and url config