Commit graph

2345 commits

Author SHA1 Message Date
a3df1d7094 Switch settings to use "the one true way" approach
The advantage of this approach is that the production and dev configurations are
in version control, so there's less opportunity for surprises.

As advocated by Jacob Kaplan-Moss (OSCON 2011) and Two Scoops of Django book.
2024-03-20 14:10:00 +11:00
b56f789886 Remove duplicate date_within template tag 2024-03-19 22:20:13 +11:00
51b5db4cc6 Add missing migration 2024-03-19 22:14:55 +11:00
53d6851509 Upgrade to Django 4.2 LTS 2024-03-19 22:14:20 +11:00
80e516ee71 Remove deprecated ifequal and ifnotequal tags
These have been replaced by `{% if x == y %}` type tags.
2024-03-19 22:01:53 +11:00
e69c44e741 add AlliterativeAdvising logo 2024-03-18 13:23:58 -07: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
71fdab5c6e Tidy-ups 2024-03-18 17:59:56 +11:00
cc938b7661 Switch from url() to path()
Path is the new way to handle simpler routing rules.
2024-03-18 17:51:33 +11:00
8f000c8196 update fossy track proposal submission 2024-03-17 10:56:33 -07:00
78cca39d09 change mentions of first on fossy landing 2024-03-17 09:57:40 -07:00
d
ba6a7297fe fossy 0224 update! 2024-03-16 11:01:02 -07:00
95fd31916d Switch from "restart apache2" to "reload apache2"
No need to do a full restart. Reload will be marginally faster.
2024-03-16 09:07:11 +11:00
Denver Gingerich
abec4616a5 usethesource: update disclaimer per SFC public MUC 2024-03-15 14:31:27 -07:00
52836d4c9b usethesource: Add some space between comment name/date and text 2024-03-15 19:41:54 +11:00
3df0feba01 usethesource: Allow comments to be attributed to non-account holders 2024-03-15 18:49:48 +11:00
3f29c25199 usethesource: Add candidate option to show/hide download disclaimer 2024-03-15 18:39:49 +11:00
089bbb9d86 usethesource: Add checkbox to opt-out of posting comment to mailing list 2024-03-15 18:21:59 +11:00
a7291bf030 Document the new deployment approach
Also mentioned linkchecker.
2024-03-13 15:55:00 +11:00
b38199dfbd Remove conservancy-www-update timer-based deploy 2024-03-13 14:50:48 +11:00
9127d01317 Prevent test giving false-negative if settings.py moved 2024-03-13 14:45:36 +11:00
fc4e61c550 Rename bin/deploy.sh to bin/deploy 2024-03-13 14:26:41 +11:00
1afac48c60 Switch content tests to pytest 2024-03-13 14:26:01 +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
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