summaryrefslogtreecommitdiff
path: root/pgcommitfest/urls.py
blob: dc5deb5e85a0d9317aa01b8c134964dcdf51d2d3 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from django.conf.urls import include, url
from django.contrib import admin

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

import pgcommitfest.commitfest.views as views
import pgcommitfest.commitfest.reports as reports
import pgcommitfest.commitfest.ajax as ajax
import pgcommitfest.commitfest.api as api
import pgcommitfest.auth
import pgcommitfest.userprofile.views

urlpatterns = [
    url(r'^$', views.home),
    url(r'^activity(?P<rss>\.rss)?/', views.activity),
    url(r'^(\d+)/$', views.commitfest),
    url(r'^(open|inprogress)/$', views.redir),
    url(r'^(?P<cfid>\d+)/activity(?P<rss>\.rss)?/$', views.activity),
    url(r'^(\d+)/(\d+)/$', views.patch),
    url(r'^(\d+)/(\d+)/edit/$', views.patchform),
    url(r'^(\d+)/new/$', views.newpatch),
    url(r'^(\d+)/(\d+)/status/(review|author|committer)/$', views.status),
    url(r'^(\d+)/(\d+)/close/(reject|feedback|committed|next)/$', views.close),
    url(r'^(\d+)/(\d+)/reviewer/(become|remove)/$', views.reviewer),
    url(r'^(\d+)/(\d+)/committer/(become|remove)/$', views.committer),
    url(r'^(\d+)/(\d+)/(un)?subscribe/$', views.subscribe),
    url(r'^(\d+)/(\d+)/(comment|review)/', views.comment),
    url(r'^(\d+)/send_email/$', views.send_email),
    url(r'^(\d+)/\d+/send_email/$', views.send_email),
    url(r'^(\d+)/reports/authorstats/$', reports.authorstats),
    url(r'^search/$', views.global_search),
    url(r'^ajax/(\w+)/$', ajax.main),
    url(r'^thread_notify/$', views.thread_notify),
    url(r'^api/active_commitfests/$', api.active_commitfests),
    url(r'^api/commitfest/(\d+)/$', api.commitfest),
    url(r'^api/commitfest/(\d+)/(\d+)/$', api.build_result),

    url(r'^selectable/', include('selectable.urls')),

    # Auth system integration
    url(r'^(?:account/)?login/?$', pgcommitfest.auth.login),
    url(r'^(?:account/)?logout/?$', pgcommitfest.auth.logout),
    url(r'^auth_receive/$', pgcommitfest.auth.auth_receive),

    # Account management
    url(r'^account/profile/$', pgcommitfest.userprofile.views.userprofile),
    url(r'^account/profile/delmail/$', pgcommitfest.userprofile.views.deletemail),
    url(r'^account/profile/confirm/([0-9a-f]+)/$', pgcommitfest.userprofile.views.confirmemail),

    # Examples:
    # url(r'^$', 'pgpgcommitfest.commitfest.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)),
]