Orange County Lettings - Views¶
This page documents the HTTP views exposed by the project and their templates.
Site views (oc_lettings_site)¶
index¶
Path:
/Template:
index.htmlPurpose: render the landing page
sentry_debug¶
Path:
/sentry-debug/Purpose: intentionally raise an error to test Sentry integration
Lettings views¶
index¶
Path:
/lettings/Template:
lettings/index.htmlContext:
lettings_list(allLettingobjects)
letting¶
Path:
/lettings/<letting_id>/Template:
lettings/letting.htmlContext:
title,addressError handling: 404 when not found; logs template and DB errors with context
Profiles views¶
index¶
Path:
/profiles/Template:
profiles/index.htmlContext:
profiles_list(allProfileobjects)
profile¶
Path:
/profiles/<username>/Template:
profiles/profile.htmlContext:
profileError handling: 404 when not found; logs template and DB errors with context
Logging and robustness¶
Both apps log database and template errors with contextual information.
404s are raised explicitly in detail views when objects are not found.
Routing summary¶
/ -> index
/lettings/ -> lettings.index
/lettings/<id>/ -> lettings.letting
/profiles/ -> profiles.index
/profiles/<username>/ -> profiles.profile
/sentry-debug/ -> sentry_debug
Orange County Lettings