Commit graph

20 commits

Author SHA1 Message Date
c52b91e183 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
5fb6b396d2 Remove unnecessary admin.autodiscover()
Since Django 1.7 this is done automatically.
2024-03-20 17:01:10 +11:00
7573c7eb4d Rearrange urls.py to distinguish the content pages 2024-03-20 16:51:28 +11:00
6717a83d4e Remove unused /coming-soon.html page 2024-03-20 16:45:49 +11:00
8963dc916e Handle trailing slashes in static content 2024-03-20 15:45:46 +11:00
02406c01fc Fix /fossy/community-tracks/ 2024-03-18 18:47:39 +11:00
d03167ccd9 Convert remaining url routes to path/re_path 2024-03-18 18:38:30 +11:00
36759236c8 Switch main urls.py to use path 2024-03-18 18:24:31 +11:00
703c08f8b4 Switch from url to re_path for static views 2024-03-18 18:17:09 +11:00
1ec61a5f07 Fix contractpatch urls 2024-03-18 18:03:15 +11:00
994d58ddf6 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
d443376fc7 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
a112ecd0ed Load images via staticfiles 2024-02-27 10:19:38 +11:00
324eab9191 Similarly load CSS via Django staticfiles app 2024-02-27 09:34:11 +11:00
c53d269b42 Remove unused ccs-upload feature
Use the Source uploads now go to a NextCloud anonymous upload.
2024-02-23 14:51:04 +11:00
1125e278f3 podjango: Pluralize to /casts/ 2024-02-07 14:29:35 +11:00
9a2071e3d2 Move /cast/ to /cast/the-corresponding-source/
This makes room for addition of other podcasts later.
2024-02-07 14:19:28 +11:00
17caea4ac6 Drop the unused /admin/doc/ route 2023-11-27 19:42:29 +11:00
072bfd8a1d 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
49ab5aafb4 Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00
Renamed from www/urls.py (Browse further)