7d6a3fa13b
Defer JavaScript loading
...
This avoids waiting for the JS to download before rendering the page.
2024-03-22 10:39:06 +11:00
ffcf016336
Specify encoding for templates in case it's not the default
2024-03-22 10:10:57 +11:00
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
255b11884d
blog: Retain author/tag when changing pages in entry_list
...
Denver noted that the author query string was being lost when you select a page
by page number. This change fixes it.
2024-03-21 15:18:22 +11:00
3f03afccdc
Fix typo
2024-03-21 13:54:49 +11:00
97bb006870
Move fundraiser calculations to model
...
This changes simplifies the template and adds correct pluralisation of
hours/hour remaining.
2024-03-21 13:20:30 +11:00
d49114f489
usethesource: Allow logged in users to edit/delete their own comments only
...
Unless of course they're given the "change comment" and "delete comment"
permissions, with which they can change or delete any comment.
2024-03-21 11:51:57 +11:00
f353f53ee1
Set USE_TZ = False to avoid default changing in Django 5
2024-03-21 09:53:19 +11:00
3c80654914
Use decorator syntax to register admin handlers
...
Same-same, just marginally neater.
2024-03-21 09:35:00 +11:00
278ee71546
Remove unused CCS upload template
2024-03-20 17:10:32 +11:00
3d36079ef7
Move copyright assignment templates into Django app
2024-03-20 17:10:16 +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
4d92711e75
Fix tests
2024-03-20 16:25:02 +11:00
7f44ed9a22
Drop djangocommonsettings.py from ignored files
2024-03-20 16:03:38 +11:00
38af378c95
Add linkcheck script
2024-03-20 15:54:18 +11:00
8963dc916e
Handle trailing slashes in static content
2024-03-20 15:45:46 +11:00
99a2271f09
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
3f60267187
Move secrets.json to top-level
2024-03-20 14:42:10 +11:00
fd8009adbd
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
32c5b85cfa
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
35290d960c
Update bin/deploy to use production settings
2024-03-20 14:18:46 +11:00
f6964cfced
Specify the production settings in wsgi.py
2024-03-20 14:15:20 +11:00
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