old_contents: # -*- coding: utf8 -*-
  from django.conf.urls import patterns, url
  
  urlpatterns = patterns('',
      url(r'^login/$', 'django_nopassword.views.login'),
      url(r'^login-code/(?P<username>[a-zA-Z0-9_@\.-]+)/(?P<login_code>[a-zA-Z0-9]+)/$',
          'django_nopassword.views.login_with_code'),
      url(r'^logout/$', 'django_nopassword.views.logout'),
  )
new_contents: # -*- coding: utf8 -*-
  from django.conf.urls import patterns, url
  
  urlpatterns = patterns('',
      url(r'^login/$', 'django_nopassword.views.login', name='login'),
      url(r'^login-code/(?P<username>[a-zA-Z0-9_@\.-]+)/(?P<login_code>[a-zA-Z0-9]+)/$',
          'django_nopassword.views.login_with_code'),
      url(r'^logout/$', 'django_nopassword.views.logout'),
  )
subject: fix #7, fix redirect problem in logout