So, in Django, the two lines of URL code below work the same way:
urlpatterns = patterns('', url(r'^login/$', 'django.contrib.auth.views.login'), (r'^login/$', 'django.contrib.auth.views.login') )
AFAIK, the only difference is that I can define name='login' , so I can use it to reverse url. But are there any other differences besides this?
source share