forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
59 lines (47 loc) · 2.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from django.conf import settings
from django.conf.urls import handler404, include, url
from django.contrib import admin
from bedrock.base.monkeypatches import patch
patch()
admin.autodiscover()
# The default django 500 handler doesn't run the ContextProcessors, which breaks
# the base template page. So we replace it with one that does!
handler500 = 'lib.bedrock_util.server_error_view'
urlpatterns = (
# authenticated urls
url(r'^admin/', include(admin.site.urls)),
url(r'^rna/', include('rna.urls')),
# Main pages
url(r'^lightbeam/', include('bedrock.lightbeam.urls')),
url(r'^foundation/', include('bedrock.foundation.urls')),
url(r'^gigabit/', include('bedrock.gigabit.urls')),
url(r'^grants/', include('bedrock.grants.urls')),
url(r'^about/legal/', include('bedrock.legal.urls')),
url(r'^persona/', include('bedrock.persona.urls')),
url(r'^press/', include('bedrock.press.urls')),
url(r'^privacy', include('bedrock.privacy.urls')),
url(r'^styleguide/', include('bedrock.styleguide.urls')),
url(r'^tabzilla/', include('bedrock.tabzilla.urls')),
url(r'^security/', include('bedrock.security.urls')),
url(r'^shapeoftheweb/', include('bedrock.shapeoftheweb.urls')),
url(r'', include('bedrock.firefox.urls')),
url(r'', include('bedrock.thunderbird.urls')),
url(r'', include('bedrock.mozorg.urls')),
url(r'', include('bedrock.newsletter.urls')),
url(r'', include('bedrock.research.urls')),
# L10n example.
url(r'^l10n_example/',
include('bedrock.l10n_example.urls')),
# Facebook Apps
url(r'^facebookapps/',
include('bedrock.facebookapps.urls')),
url(r'^healthz/$', 'bedrock.base.views.health_check'),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
)
if settings.DEBUG:
urlpatterns += (url(r'^404/$', handler404),
url(r'^500/$', handler500))