website/conservancy/urls.py
Ben Sturmfels 352aaf2bd2 podjango: Add "Podcast" model to support multiple podcasts
Each Cast (episode) can belong to one or more Podcast, allowing episodes to be
shared between podcasts. This enables us introductory episodes to be delivered
in their own feed, but also included in the main "The Corresponding Source"
feed.

This required adding an additional `podcast_slug` argument to most views. The
date archive views were dropped because they're not linked to from anywhere.

Added a `podcasts` view as an index of all available Podcasts.
2024-04-25 15:32:24 +10:00

61 lines
2.8 KiB
Python

# Copyright 2005-2008, James Garrison
# Copyright 2010, 2012 Bradley M. Kuhn
# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute, modify and/or redistribute modified versions of
# this program under the terms of the GNU Affero General Public License
# (AGPL) as published by the Free Software Foundation (FSF), either
# version 3 of the License, or (at your option) any later version of the
# AGPL published by the FSF.
#
# 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 in a file in the toplevel directory called
# "AGPLv3". If not, see <http://www.gnu.org/licenses/>.
from django.urls import include, path, re_path
from django.contrib import admin
from . import feeds, frontpage, sponsors
from .fundgoal import views as fundgoal_views
from . import views as static_views
urlpatterns = [
path('', frontpage.view),
path('admin/', admin.site.urls),
path('assignment/', include('conservancy.assignment.urls')),
path('blog/', include('conservancy.blog.urls')),
path('casts/', include('conservancy.podjango.urls')),
path('contacts/', include('conservancy.contacts.urls')),
path('contractpatch/', include('conservancy.contractpatch.urls')),
path('feeds/', feeds.view),
path('feeds/blog/', feeds.BlogFeed()),
path('feeds/news/', feeds.PressReleaseFeed()),
path('feeds/omnibus/', feeds.OmnibusFeed()),
path('fossy/', include('conservancy.fossy.urls')),
path('fundraiser_data/', fundgoal_views.view),
path('news/', include('conservancy.news.urls')),
path('sponsors/', sponsors.view),
path('sponsors/index.html', sponsors.view),
path('sustainer/', include('conservancy.supporter.urls')),
path('usethesource/', include('conservancy.usethesource.urls')),
# Directories of templates and files
re_path(r'^about/', static_views.index),
re_path(r'^activities/', static_views.index),
re_path(r'^copyleft-compliance/', static_views.index, {'fundraiser_sought': 'vmware-match-0'}),
re_path(r'^donate/', static_views.index),
path('fossy/', static_views.index),
re_path(r'^GiveUpGitHub/', static_views.index),
re_path(r'^learn/', static_views.index),
re_path(r'^npoacct/', static_views.index, {'fundraiser_sought': 'npoacct'}),
re_path(r'^overview/', static_views.index), # Unused?
re_path(r'^press/', static_views.index),
re_path(r'^privacy-policy/', static_views.index),
re_path(r'^projects/', static_views.index),
re_path(r'^sustainer/', static_views.index),
]