Source

freehg / urls.py

Full commit
from django.conf.urls.defaults import *

from django.views.generic.simple import direct_to_template

urlpatterns = patterns('',
    # Example:
    #(r'^freehg/', include('freehg.foo.urls')),
    (r'^$', 'freehg.repos.views.frontpage'),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
    (r'^accounts/profile/$', 'freehg.accountviews.profile'),
    (r'^accounts/change_password/$',
            'django.contrib.auth.views.password_change'),
    (r'^accounts/change_password/done/$',
            'django.contrib.auth.views.password_change_done'),

    (r'^tos/', direct_to_template, {'template':'tos.html'}),
    (r'^about/', direct_to_template, {'template':'about.html'}),

    (r'^u/(?P<username>\w+)/(?P<reponame>\w+)/$', 'freehg.repos.views.summary'),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
)

from django.conf import settings
if settings.DEBUG:
    urlpatterns += patterns('',
            (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'htdocs/static'}),)

from freehg.htpasswdutils import monkeypatch_user_model
monkeypatch_user_model()