-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
36 lines (25 loc) · 1.23 KB
/
urls.py
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
import os
import re
from django.conf.urls import *
from sentry.conf import KEY
from sentry import views
from sentry.feeds import MessageFeed, SummaryFeed
SENTRY_ROOT = os.path.dirname(__file__)
urlpatterns = patterns('',
url(r'^_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': os.path.join(SENTRY_ROOT, 'media')}, name='sentry-media'),
# Feeds
url(r'^feeds/%s/messages.xml$' % re.escape(KEY), MessageFeed(), name='sentry-feed-messages'),
url(r'^feeds/%s/summaries.xml$' % re.escape(KEY), SummaryFeed(), name='sentry-feed-summaries'),
# JS and API
url(r'^jsapi/$', views.ajax_handler, name='sentry-ajax'),
url(r'^store/$', views.store, name='sentry-store'),
# Normal views
url(r'^login$', views.login, name='sentry-login'),
url(r'^logout$', views.logout, name='sentry-logout'),
url(r'^group/(\d+)$', views.group, name='sentry-group'),
url(r'^group/(\d+)/messages$', views.group_message_list, name='sentry-group-messages'),
url(r'^group/(\d+)/messages/(\d+)$', views.group_message_details, name='sentry-group-message'),
url(r'^group/(\d+)/actions/([\w_-]+)', views.group_plugin_action, name='sentry-group-plugin-action'),
url(r'^$', views.index, name='sentry'),
)