Changeset View
Changeset View
Standalone View
Standalone View
swh/web/admin/urls.py
# Copyright (C) 2018-2022 The Software Heritage developers | # Copyright (C) 2018-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.conf.urls import url | |||||
from django.contrib.auth.views import LoginView | from django.contrib.auth.views import LoginView | ||||
from django.shortcuts import redirect | from django.shortcuts import redirect | ||||
from django.urls import re_path as url | |||||
from swh.web.admin.adminurls import AdminUrls | from swh.web.admin.adminurls import AdminUrls | ||||
import swh.web.admin.deposit # noqa | import swh.web.admin.deposit # noqa | ||||
import swh.web.admin.mailmap # noqa | import swh.web.admin.mailmap # noqa | ||||
import swh.web.admin.origin_save # noqa | import swh.web.admin.origin_save # noqa | ||||
from swh.web.config import is_feature_enabled | from swh.web.config import is_feature_enabled | ||||
if is_feature_enabled("add_forge_now"): | if is_feature_enabled("add_forge_now"): | ||||
Show All 13 Lines |