Source

noodle-bucket / urls.py

Full commit
from django.conf.urls.defaults import *
from django.conf import settings
from noodlebucket.admin import admin

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^grappelli/', include('grappelli.urls')),
    url(r'^feedback/', include('noodlebucket.feedback.urls')),
)

urlpatterns += patterns('noodlebucket.mercurial_data.views',
    url(r'^$', 'repo_list', name="repo-list"),
    url(r'^repo/(?P<user_name>[^/]+)/(?P<repo_name>[^/]+)/$', 'repo', name="repo"),
)

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