Commit graph

2355 commits

Author SHA1 Message Date
661603c3be
Fix tests 2024-03-20 16:25:02 +11:00
43e7c7e358
Drop djangocommonsettings.py from ignored files 2024-03-20 16:03:38 +11:00
477a5d0ef5
Add linkcheck script 2024-03-20 15:54:18 +11:00
1cfe805689
Handle trailing slashes in static content 2024-03-20 15:45:46 +11:00
5fa226284b
Delegate management of canonical URLs to Apache
This middleware is mostly redundant:

 * redirecting to canonical URLs can be done more simply in Apache
 * appending a forward slash is a default in CommonMiddleware now
 * we're no longer using Squid cache

May need to update Apache to strip/redirect trailing "index.html".
2024-03-20 14:54:54 +11:00
c795e1799c
Move secrets.json to top-level 2024-03-20 14:42:10 +11:00
d0464e870c
Fix strange issue with ParameterValidator settings
When imported at top-level, `settings` was a Python module, rather than a Django
settings object. Not sure why.
2024-03-20 14:32:44 +11:00
2b709f61e0
Make bin/deploy abort if there's an error with git push
For example, your push failed because there's upstream changes.
2024-03-20 14:18:59 +11:00
e93f864e0e
Update bin/deploy to use production settings 2024-03-20 14:18:46 +11:00
fedab3120b
Specify the production settings in wsgi.py 2024-03-20 14:15:20 +11:00
3826b6fb66
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
fe4112c879
Remove duplicate date_within template tag 2024-03-19 22:20:13 +11:00
283bb5d330
Add missing migration 2024-03-19 22:14:55 +11:00
2bf73e35fa
Upgrade to Django 4.2 LTS 2024-03-19 22:14:20 +11:00
0b9ab6970c
Remove deprecated ifequal and ifnotequal tags
These have been replaced by `{% if x == y %}` type tags.
2024-03-19 22:01:53 +11:00
c80ed09d70 add AlliterativeAdvising logo 2024-03-18 13:23:58 -07: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
0ad369ebb9
Tidy-ups 2024-03-18 17:59:56 +11:00
2a99a0c81a
Switch from url() to path()
Path is the new way to handle simpler routing rules.
2024-03-18 17:51:33 +11:00
c4f88bd931 update fossy track proposal submission 2024-03-17 10:56:33 -07:00
4650f685bb change mentions of first on fossy landing 2024-03-17 09:57:40 -07:00
d
3b74e8430f fossy 0224 update! 2024-03-16 11:01:02 -07:00
cc424bb964
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
84daddb4ff usethesource: update disclaimer per SFC public MUC 2024-03-15 14:31:27 -07:00
5605243dfd
usethesource: Add some space between comment name/date and text 2024-03-15 19:41:54 +11:00
9ff4682420
usethesource: Allow comments to be attributed to non-account holders 2024-03-15 18:49:48 +11:00
296f29c84b
usethesource: Add candidate option to show/hide download disclaimer 2024-03-15 18:39:49 +11:00
c0a4fe5f39
usethesource: Add checkbox to opt-out of posting comment to mailing list 2024-03-15 18:21:59 +11:00
250db691e4
Document the new deployment approach
Also mentioned linkchecker.
2024-03-13 15:55:00 +11:00
3069a72763
Remove conservancy-www-update timer-based deploy 2024-03-13 14:50:48 +11:00
cba71044a2
Prevent test giving false-negative if settings.py moved 2024-03-13 14:45:36 +11:00
62823a9493
Rename bin/deploy.sh to bin/deploy 2024-03-13 14:26:41 +11:00
daf93dc32b
Switch content tests to pytest 2024-03-13 14:26:01 +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
Denver Gingerich
e50baa3f96 usethesource: delete moot timeline on CCIRT page 2024-03-12 17:27:04 -07:00
Denver Gingerich
436dc012b3 usethesource: long waits are over, so delete note 2024-03-12 16:51:52 -07:00
9fecb37c61
Update the path to templates in index() 2024-03-06 19:02:00 +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
d461c1bc86
podjango: Add The Corresponding Source logo to feed 2024-03-06 17:34:48 +11:00
f06b631093
usethesource: Add missing migration 2024-02-27 19:10:04 +11:00
af83b40af2
fossy: Add date hierarchy in admin 2024-02-27 19:09:48 +11:00
6c24b00fe3
fossy: Add created_time to CommunityTrackProposal model
Also move templates into app.
2024-02-27 19:01:31 +11:00
3ef31ebe43
Fix broken video links 2024-02-27 10:27:25 +11:00
aa26e2f7f0
Fix mistaken rename
I meant to rename the deploy script, not the deploy directory.
2024-02-27 10:23:18 +11:00
d8a702c8c9
Load images via staticfiles 2024-02-27 10:19:38 +11:00
7074802d50
Load favicon via staticfiles 2024-02-27 09:50:07 +11:00