Support named URL patterns

Django 1.5 supports named URL patterns for LOGIN_URL, etc.. Now it supports too.