-
Notifications
You must be signed in to change notification settings - Fork 34
/
urls.py
29 lines (24 loc) · 875 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
# ---------------------------------------------------------------------
# Django URL dispatcher.
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Third-party modules
from django.http import HttpResponseServerError
from django.views.i18n import JavaScriptCatalog
from django.urls import path
# NOC modules
from noc.services.web.base.site import site
from noc.core.debug import error_report
#
# Discover all applications
#
site.autodiscover()
#
# Install URL handlers, including django's translations
#
urlpatterns = site.urls + [path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog")]
def handler500(request):
error_report()
return HttpResponseServerError("Internal Server Error")