Skip to content
Snippets Groups Projects
Commit 96866e5d authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Remove unused URL configs

parent 0ee3a655
No related branches found
No related tags found
No related merge requests found
#
# 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)
#
# 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 = []
......@@ -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}))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment