old_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  urlpatterns = patterns('',
      url(r'^$', 'cidonkey.views.page_with_ajax', name='build-list', kwargs={'ajax_url': 'build-list-ajax'}),
      url(r'^ajax/$', 'cidonkey.views.build_list_ajax', name='build-list-ajax'),
  
      url(r'^(?P<pk>\d+)/$', 'cidonkey.views.page_with_ajax', name='build-details', kwargs={'ajax_url': 'build-details-ajax'}),
      url(r'^ajax/(?P<pk>\d+)/$', 'cidonkey.views.build_details_ajax', name='build-details-ajax'),
  
      url(r'^build/manual/$', 'cidonkey.views.go_build', name='go-build'),
      url(r'^build/(?P<pk>\d+)/webhook/$', 'cidonkey.views.webhook', name='webhook'),
  
      url(r'^(?P<pk>\d+)/status.svg$', 'cidonkey.views.status_svg', name='status-svg'),
  
      url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.jinja'}),
      url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/accounts/login/'}, name='logout'),
      url(r'^admin/', include(admin.site.urls)),
  )
  
new_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  urlpatterns = patterns('',
      url(r'^$', 'cidonkey.views.page_with_ajax', name='build-list', kwargs={'ajax_url': 'build-list-ajax'}),
      url(r'^ajax/$', 'cidonkey.views.build_list_ajax', name='build-list-ajax'),
  
      url(r'^(?P<pk>\d+)/$', 'cidonkey.views.page_with_ajax', name='build-details', kwargs={'ajax_url': 'build-details-ajax'}),
      url(r'^ajax/(?P<pk>\d+)/$', 'cidonkey.views.build_details_ajax', name='build-details-ajax'),
  
      url(r'^build/manual/$', 'cidonkey.views.go_build', name='go-build'),
  
      url(r'^project/(?P<pk>\d+)/webhook/$', 'cidonkey.views.webhook', name='webhook'),
      url(r'^project/(?P<pk>\d+)/status.svg$', 'cidonkey.views.status_svg', name='status-svg'),
  
      url(r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.jinja'}),
      url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/accounts/login/'}, name='logout'),
      url(r'^admin/', include(admin.site.urls)),
  )
  
subject: correct urls