1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'commitfest.views.home'),
url(r'^(\d+)/$', 'commitfest.views.commitfest'),
url(r'^(\d+)/(\d+)/$', 'commitfest.views.patch'),
url(r'^(\d+)/(\d+)/edit/$', 'commitfest.views.patchform'),
url(r'^(\d+)/new/$', 'commitfest.views.newpatch'),
url(r'^(\d+)/(\d+)/status/(review|author|committer)/$', 'commitfest.views.status'),
url(r'^(\d+)/(\d+)/close/(reject|feedback|committed)/$', 'commitfest.views.close'),
url(r'^(\d+)/(\d+)/reviewer/(become|remove)/$', 'commitfest.views.reviewer'),
url(r'^(\d+)/(\d+)/(comment|review)/', 'commitfest.views.comment'),
url(r'^ajax/(\w+)/$', 'commitfest.ajax.main'),
url(r'^selectable/', include('selectable.urls')),
# Auth system integration
(r'^(?:account/)?login/?$', 'auth.login'),
(r'^(?:account/)?logout/?$', 'auth.logout'),
(r'^auth_receive/$', 'auth.auth_receive'),
# Examples:
# url(r'^$', 'pgcommitfest.views.home', name='home'),
# url(r'^pgcommitfest/', include('pgcommitfest.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
|