Commit graph

9 commits

Author SHA1 Message Date
31fa3694ea
Handle excessively long paths 2024-06-06 18:07:05 +10:00
0b8ae2ca77
Move SITE_FUNDGOAL configuration to settings/base.py
This changes more often than the surrounding code, so should live with the other
configuration.
2024-05-10 12:00:44 +10:00
2ff551147c
Merge sponsors.py into supporters app, frontpage.py into views.py
Just a small structural change so that the related functionality is grouped together.
2024-05-10 11:27:51 +10:00
da121e5eb4
Specify encoding for templates in case it's not the default 2024-03-22 10:10:57 +11:00
fe64a26a72
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
1cfe805689
Handle trailing slashes in static content 2024-03-20 15:45:46 +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
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
Renamed from conservancy/static/views.py (Browse further)