travel_quiz#
Interactive quiz matching users to Cape Town neighbourhoods based on lifestyle preferences, travel style, and priorities.
Models#
Model |
Description |
|---|---|
|
Geographic area grouping (Atlantic Seaboard, City Bowl, etc.) |
|
Quiz-specific neighbourhood with 18 scoring attributes |
|
Quiz definition with title, intro, and active flag |
|
Quiz question with score attribute mappings |
|
Choice option for a question with attribute boost |
|
Saved result with top 3 recommendations and scores |
Scoring System#
Each Neighbourhood has 18 score_* attributes (ocean, mountain, walkable,
luxury, budget, social, quiet, wind_sensitive, no_car, has_car, views, nightlife,
local_feel, surf, solo, couple, family, friends). Quiz answers map to these
attributes via Question.score_attribute_high/low and QuestionChoice.score_attribute.
Key Design Decisions#
Separate Neighbourhood model from
housing.Neighbourhood— the quiz neighbourhood has scoring attributes and simplified fields, while the housing model has full market data. They sharename/slugfor cross-referencing.Flexible question types:
scale(slider) andchoice(radio buttons) with configurable attribute boosting.Session-based results:
session_keyallows anonymous users to retrieve results without authentication.