diff --git a/profile/urls.py b/profile/urls.py deleted file mode 100644 index 80529afe29b5bfcf1f5f49a7381b0afe829e7f95..0000000000000000000000000000000000000000 --- 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 26118e22c49c89f15c12f23af43fccd8eadd3351..0000000000000000000000000000000000000000 --- 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 32bc8cffc2ccd92650d09021ace827f70c757da9..fbe50aece5771607b06f82a1139671c02bc5d7c4 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}))