forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
65 lines (57 loc) · 2.1 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
60
61
62
63
64
65
import os
from django.conf import settings
from django.conf.urls import include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.static import serve
from .base.monkeypatches import patch
from .crashstats import urls
from .supersearch import urls as supersearch_urls
from .authentication import urls as auth_urls
from .monitoring import urls as monitoring_urls
patch()
handler500 = 'crashstats.base.views.handler500'
handler404 = 'crashstats.base.views.handler404'
urlpatterns = [
url(r'^(?P<path>contribute\.json)$', serve, {
'document_root': os.path.join(settings.ROOT, '..'),
}),
url(r'^(?P<path>favicon\.ico)$', serve, {
'document_root': os.path.join(settings.ROOT, 'crashstats', 'base', 'static', 'img'),
}),
url(r'', include(urls, namespace='crashstats')),
url(r'', include(supersearch_urls)),
url(r'^signature/', include(
'crashstats.signature.urls',
namespace='signature'
)),
url(r'^topcrashers/', include(
'crashstats.topcrashers.urls',
namespace='topcrashers'
)),
url(r'^sources/', include(
'crashstats.sources.urls',
namespace='sources'
)),
url(r'^home/', include(
'crashstats.home.urls',
namespace='home'
)),
url(r'', include(auth_urls, namespace='auth')),
url(r'^monitoring/', include(monitoring_urls, namespace='monitoring')),
url(r'^api/tokens/', include('crashstats.tokens.urls', namespace='tokens')),
url(r'^api/', include('crashstats.api.urls', namespace='api')),
url(r'^symbols/', include('crashstats.symbols.urls', namespace='symbols')),
# if we ever use the Django admin we might want to change this URL
url(r'^admin/', include('crashstats.manage.urls', namespace='manage')),
url(r'^profile/', include(
'crashstats.profile.urls',
namespace='profile'
)),
url(r'^documentation/', include(
'crashstats.documentation.urls',
namespace='documentation'
)),
]
# In DEBUG mode, serve media files through Django.
if settings.DEBUG:
urlpatterns += staticfiles_urlpatterns()