Commit graph

4 commits

Author SHA1 Message Date
8963dc916e Handle trailing slashes in static content 2024-03-20 15:45:46 +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
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
Renamed from conservancy/static/views.py (Browse further)