forked from mozilla/scrumbugz
-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
33 lines (26 loc) · 937 Bytes
/
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
from django.conf import settings
from django.conf.urls import * # noqa
from django.contrib import admin
from django.views.generic import TemplateView
import jingo.monkey
admin.autodiscover()
handler500 = 'scrum.views.server_error'
urlpatterns = patterns('',
url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'),
url(r'^admin/', include(admin.site.urls)),
url(r'^help/', TemplateView.as_view(template_name='help.html'),
name='help'),
url(r'^$', 'scrum.views.home', name='scrum_home'),
url(r'^bugzilla/', include('bugzilla.urls')),
url(r'^bugmail/', include('bugmail.urls')),
url(r'', include('scrum.urls')),
url(r'', include('django_browserid.urls')),
)
if settings.DEBUG:
urlpatterns += patterns('',
(r'^500/$', handler500),
(r'^404/$', handler404),
)
# Monkeypatches!
# Patch Django to support __html__ for rendering in Jinja.
jingo.monkey.patch()