Changeset View
Changeset View
Standalone View
Standalone View
swh/web/urls.py
# Copyright (C) 2017-2022 The Software Heritage developers | # Copyright (C) 2017-2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from django_js_reverse.views import urls_js | from django_js_reverse.views import urls_js | ||||
from django.conf import settings | from django.conf import settings | ||||
from django.conf.urls import ( | from django.conf.urls import handler400, handler403, handler404, handler500, include | ||||
handler400, | |||||
handler403, | |||||
handler404, | |||||
handler500, | |||||
include, | |||||
url, | |||||
) | |||||
from django.contrib.auth.views import LogoutView | from django.contrib.auth.views import LogoutView | ||||
from django.contrib.staticfiles.views import serve | from django.contrib.staticfiles.views import serve | ||||
from django.shortcuts import render | from django.shortcuts import render | ||||
from django.urls import re_path as url | |||||
from django.views.generic.base import RedirectView | from django.views.generic.base import RedirectView | ||||
from swh.web.browse.identifiers import swhid_browse | from swh.web.browse.identifiers import swhid_browse | ||||
from swh.web.common.exc import ( | from swh.web.common.exc import ( | ||||
swh_handle400, | swh_handle400, | ||||
swh_handle403, | swh_handle403, | ||||
swh_handle404, | swh_handle404, | ||||
swh_handle500, | swh_handle500, | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |