Commit graph

2418 commits

Author SHA1 Message Date
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
Denver Gingerich
54cbcdbacc usethesource: delete moot timeline on CCIRT page 2024-03-12 17:27:04 -07:00
Denver Gingerich
d6ec167411 usethesource: long waits are over, so delete note 2024-03-12 16:51:52 -07:00
21c7d404a6 Update the path to templates in index() 2024-03-06 19:02:00 +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
10bfc66322 podjango: Add The Corresponding Source logo to feed 2024-03-06 17:34:48 +11:00
1fefacc3e3 usethesource: Add missing migration 2024-02-27 19:10:04 +11:00
4a28802a55 fossy: Add date hierarchy in admin 2024-02-27 19:09:48 +11:00
853f4cf50d fossy: Add created_time to CommunityTrackProposal model
Also move templates into app.
2024-02-27 19:01:31 +11:00
a6ff881548 Fix broken video links 2024-02-27 10:27:25 +11:00
c9c1cd710b Fix mistaken rename
I meant to rename the deploy script, not the deploy directory.
2024-02-27 10:23:18 +11:00
a112ecd0ed Load images via staticfiles 2024-02-27 10:19:38 +11:00
03ce063e23 Load favicon via staticfiles 2024-02-27 09:50:07 +11:00
0b0db395fd Push to remote first during deploy 2024-02-27 09:43:07 +11:00
324eab9191 Similarly load CSS via Django staticfiles app 2024-02-27 09:34:11 +11:00
8feb03ba69 Load JS through Django's staticfiles app
This avoids the need for adjustments during development and allows production to
be served under a single /static declaration in Apache.
2024-02-27 09:25:05 +11:00
7626344cc3 Remove reference to old jQuery
This was 404ing anyway.
2024-02-27 09:22:08 +11:00
48e26e7062 Add a basic script to "push" deploy
Currently updates are published by the "conservancy-www-update.sh" that does a
"pull" deploy with a 5-minutely job that runs on the web server. This doesn't
run `migrate`, `collectstatic` or restart the application, so certain types of
changes don't take effect, and even template changes often don't due to caching
template loader.

This script allows you to deploy more significant updates on-demand, but
requires SSH access.
2024-02-23 15:39:54 +11:00
cdd7ee7db1 poddjango: Further lint fixes 2024-02-23 15:06:59 +11:00
db92f576fb podjango: Fix linting warnings 2024-02-23 15:02:04 +11:00
167a8f67f2 podjango: Use or_ instead of lambda
Easier to read.
2024-02-23 15:01:01 +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
5ed6d33f8d update path -- website/systemd is now website/deploy/systemd 2024-02-13 10:51:04 -05:00
09b064d5fa Add FY2022-23 Form 990 to website 2024-02-13 07:41:11 -08:00
411a96b41b Add FY 2022-23 audit report; update transparency page accordingly 2024-02-13 07:16:56 -08:00
b1761a3cf6 Add "The Corresponding Source" to menus 2024-02-09 23:05:54 +11:00
1125e278f3 podjango: Pluralize to /casts/ 2024-02-07 14:29:35 +11:00
e806af4966 podjango: Shorten feeds links 2024-02-07 14:25:45 +11:00
d6a499f1de podjango: Remove FaiF reference 2024-02-07 14:23:55 +11:00
6d015df9d7 podjango: Comment out itunes link pending update 2024-02-07 14:19:28 +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
9442c99809 Change to SFC contacts. 2024-02-06 19:15:43 -08:00
ae00e8dc48 Fill paragraph, no changes otherwise. 2024-02-06 19:13:38 -08:00
2a89a66ea4 podjango: Temporarily filter out episodes prior to 2024 2024-02-07 11:03:56 +11:00
d6713357f5 Move ALLOWED_HOSTS into local settings (djangocommonsettings.py) 2024-02-06 21:59:31 +11:00
239cebbd8a Remove commented out XViewMiddleware 2024-02-06 21:58:36 +11:00
208f067c40 Remove DEBUG = False as it's the default 2024-02-06 21:52:59 +11:00
2ba7eb1609 Remove outdated copy of Apache config
This isn't being deployed from the repository and is a couple of servers out of date.
2024-02-06 21:40:01 +11:00
607c2debaf Move deployment-related systemd config into "deploy" subdirectory 2024-02-06 21:39:18 +11:00
Denver Gingerich
500e6fbe56 usethesource: candidate rounds explainer sentence 2024-02-04 23:04:39 -08:00
Denver Gingerich
1e5128b8bf usethesource: clarify when/where comments posted 2024-02-04 23:03:31 -08:00
Denver Gingerich
129306f56b usethesource: update blog post refs on CCIRT page 2024-02-04 22:45:24 -08:00
Denver Gingerich
3dc0c218e2 usethesource: capitalize "the" (mostly What We Do) 2024-02-04 22:34:43 -08:00
b8167476b1 usethesource: Add "See more" link 2024-02-05 11:15:23 +11:00
Denver Gingerich
15a114e2a5 usethesource: update SFC front page top right tile 2024-02-02 23:07:41 -08:00
Denver Gingerich
df5ec28875 usethesource: add link to blog post on CCIRT page 2024-02-02 22:57:01 -08:00
Denver Gingerich
40282ccb7e usethesource: add to What We Do - getting real! 2024-02-02 21:50:20 -08:00
Denver Gingerich
4df4fd391d usethesource: use production mailing list now 2024-02-02 20:44:17 -08:00
Denver Gingerich
2016e49fb2 usethesource: submission guidelines fix, CCIRT lnk 2024-02-02 20:09:52 -08:00
Denver Gingerich
a21c98ee53 usethesource: fix second CCIRT image link, ongoing 2024-02-02 19:51:07 -08:00