1. Steve Losh
  2. tinpan

Source

tinpan / urls.py

from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
import tinpan.integration.views

admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
)

urlpatterns += patterns('tinpan.integration.views',
    url(r'^$',                                     'overview',       name='overview'),
    url(r'^(?P<slug>[\w_-]+)/$',                   'project_detail', name='project_detail'),
    url(r'^(?P<slug>[\w_-]+)/run/$',               'run_build',      name='run_build'),
    url(r'^(?P<slug>[\w_-]+)/build/(?P<id>\d+)/$', 'build_detail',   name='build_detail'),
)


if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site-media/(?P<path>.*)$', 'django.views.static.serve',
         {'document_root': settings.MEDIA_ROOT}),
    )