From 96866e5d0653c06f7f6ec10adaf686dedfe443cb Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Tue, 8 Feb 2022 17:00:38 -0400 Subject: [PATCH] Remove unused URL configs --- profile/urls.py | 30 ------------------------------ program/urls.py | 32 -------------------------------- steering/urls.py | 6 ------ 3 files changed, 68 deletions(-) delete mode 100644 profile/urls.py delete mode 100644 program/urls.py diff --git a/profile/urls.py b/profile/urls.py deleted file mode 100644 index 80529afe..00000000 --- a/profile/urls.py +++ /dev/null @@ -1,30 +0,0 @@ -# -# steering, Programme/schedule management for AURA -# -# Copyright (C) 2017-2018, Ingo Leindecker -# -# This program is free software: you can redistribute it and/or modify it under -# the terms of the GNU Affero General Public License as published by the Free -# Software Foundation, either version 3 of the License, or (at your option) any -# later version. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more -# details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# - -from django.contrib import admin -from rest_framework import routers - -from program.views import APIUserViewSet - -admin.autodiscover() - -urlpatterns = [] - -router = routers.DefaultRouter() -router.register(r'users', APIUserViewSet) diff --git a/program/urls.py b/program/urls.py deleted file mode 100644 index 26118e22..00000000 --- a/program/urls.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# steering, Programme/schedule management for AURA -# -# Copyright (C) 2011-2017, 2020, Ernesto Rico Schmidt -# Copyright (C) 2017-2019, Ingo Leindecker -# -# This program is free software: you can redistribute it and/or modify it under -# the terms of the GNU Affero General Public License as published by the Free -# Software Foundation, either version 3 of the License, or (at your option) any -# later version. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more -# details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# - -import os - -from django.conf import settings -from django.urls import path -from django.views.static import serve - -PROGRAM_SITE_MEDIA = os.path.join(os.path.dirname(__file__), '../site_media') - -if settings.DEBUG: - urlpatterns = [path('static/<path>', serve, {'document_root': PROGRAM_SITE_MEDIA})] -else: - urlpatterns = [] diff --git a/steering/urls.py b/steering/urls.py index 32bc8cff..fbe50aec 100644 --- a/steering/urls.py +++ b/steering/urls.py @@ -18,10 +18,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -from django.conf import settings from django.urls import include, path from django.contrib import admin -from django.views.static import serve from rest_framework_nested import routers from program.views import APIUserViewSet, APIHostViewSet, APIShowViewSet, APIScheduleViewSet, APITimeSlotViewSet, \ @@ -82,8 +80,4 @@ urlpatterns = [ path('api/v1/program/week', json_playout), path('api/v1/program/<int:year>/<int:month>/<int:day>)/', json_day_schedule), path('admin/', admin.site.urls), - path('program/', include('program.urls')), ] - -if settings.DEBUG: - urlpatterns.append(path('site_media/<path>', serve, {'document_root': settings.MEDIA_ROOT})) -- GitLab