Commit graph

23 commits

Author SHA1 Message Date
1a05c6391c
podjango: Upload icon per podcast 2024-04-26 16:07:20 +10:00
956f8c6fda
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
789d0c8c84
contacts: Remove ContactEntry and add Unsubscription
This change removes the unused `ContactEntry` model and the `subscribe` view and
replaces it with an `Unsubscription` model and an `unsubscribe` view. It works
similarly, but is intended to be used with the `list-unsubscribe` and
`list-unsubscribe-post` headers.
2024-04-09 22:53:24 +10:00
fe64a26a72
Move the content templates/files into conservancy/content
These were previously intermingled with the static content in `conservancy/static`.
2024-03-22 09:34:20 +11:00
382952a6ad
Remove unnecessary admin.autodiscover()
Since Django 1.7 this is done automatically.
2024-03-20 17:01:10 +11:00
618bb1e83d
Rearrange urls.py to distinguish the content pages 2024-03-20 16:51:28 +11:00
6179988005
Remove unused /coming-soon.html page 2024-03-20 16:45:49 +11:00
1cfe805689
Handle trailing slashes in static content 2024-03-20 15:45:46 +11:00
6f618e110f
Fix /fossy/community-tracks/ 2024-03-18 18:47:39 +11:00
33833e3a33
Convert remaining url routes to path/re_path 2024-03-18 18:38:30 +11:00
8b805b313e
Switch main urls.py to use path 2024-03-18 18:24:31 +11:00
922afef356
Switch from url to re_path for static views 2024-03-18 18:17:09 +11:00
fc308958fa
Fix contractpatch urls 2024-03-18 18:03:15 +11:00
94c56bb468
Rewrite the index view to avoid risk of path traversal
I've simplified this view by removing the custom HTTP error handlers, Python 3.5
exception handling and adding documentation.
2024-03-13 13:16:29 +11:00
dd27742114
Move Python code out of the "conservancy/static" directory
Having Python code in "conservancy/static" is a bit suprising to people familiar
with Django. The name "static" is usually reserved for assets like CSS, JS and
images.

I'm moving `conservancy/static/views.py` to `conservancy/views.py` and removing
`conservancy/static/__init__.py`.
2024-03-06 18:46:40 +11:00
d8a702c8c9
Load images via staticfiles 2024-02-27 10:19:38 +11:00
18de3adfce
Similarly load CSS via Django staticfiles app 2024-02-27 09:34:11 +11:00
e7f21fa253
Remove unused ccs-upload feature
Use the Source uploads now go to a NextCloud anonymous upload.
2024-02-23 14:51:04 +11:00
7933ca5f71
podjango: Pluralize to /casts/ 2024-02-07 14:29:35 +11:00
38db5039d9
Move /cast/ to /cast/the-corresponding-source/
This makes room for addition of other podcasts later.
2024-02-07 14:19:28 +11:00
bc21a0b92f
Drop the unused /admin/doc/ route 2023-11-27 19:42:29 +11:00
ebb7866739
Switch CCS upload, copyright assignment, FOSSY and podcast components to use path()
This is the newer approach to URL routing in Django.
2023-11-27 19:40:06 +11:00
ce6be591bd
Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00
Renamed from www/urls.py (Browse further)