from django.conf.urls import patterns
from django.views.generic import RedirectView
urlpatterns = patterns('', ('^login$', RedirectView.as_view(url='/login/')),
    ('^login/', 'views.my_handler'))
django urls without a trailing slash do not redirect