  urlpatterns = patterns('',
      (r'pygments-example/', include('pygments_api.urls')),
      (r'^blog-post-example/', include('blogpost.urls')),
      (r'^object-store-example/', include('objectstore.urls')),
      (r'^admin/doc/', include('django.contrib.admindocs.urls')),
      (r'^admin/', include(admin.site.urls)),
  )
 
</s> remove # TODO: Display user login in top panel: http://stackoverflow.com/questions/806835/django-redirect-to-previous-page-after-login
 </s> add  </s> remove from itertools import chain
 </s> add 
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
  urlpatterns = patterns('',
      (r'pygments-example/', include('pygments_api.urls')),
      (r'^blog-post-example/', include('blogpost.urls')),
      (r'^object-store-example/', include('objectstore.urls')),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
      (r'^admin/doc/', include('django.contrib.admindocs.urls')),
      (r'^admin/', include(admin.site.urls)),
  )
keep keep keep add keep keep keep
 Login/Logout and FlyWheel API link in HTML emitter 
examples/urls.py