How boyedandtoyed/bmi_calculator works
BMI_calculator is a Django web app for entering weight and height, calculating BMI, assigning a configurable BMI range, displaying suggestions, and saving the result to a user profile. Its surrounding workflow includes registration with email verification, login, profile updates, and dashboard access. The graph follows the sampled URL and view code; email verification and suggestion-email sending are documented or referenced, but their implementation details and database configuration were not sampled.
Main entry points: useraccount/views.py Account Views · BMIcalcapp/views.py BMI Views · urls.py Project Routes · models.py User Profile
Components 16
Web Routing
- Project Routes
BMIcalculator/urls.py - BMI Routes
BMIcalcapp/urls.py - Account Routes
useraccount/urls.py
BMI Calculation
- BMI Views
BMIcalcapp/views.py - Suggestion Pages
BMIcalcapp/templates/suggestions - Dashboard Page
BMIcalcapp/templates/dashboard.html
Accounts
- Account Views
useraccount/views.py - Account Forms
useraccount/forms.py - Email Verification
Models and Administration
- BMI Ranges
BMIcalcapp/models.py - User Profile
useraccount/models.py - Application Database
- BMI Range Admin
BMIcalcapp/admin.py
Other components
- Visitor
- Email Service
- Django Authentication
Connections 21
- Visitor → Project Routes: requests pages
BMIcalculator/urls.py - Project Routes → BMI Routes: routes BMI
BMIcalculator/urls.py - Project Routes → Account Routes: routes accounts
BMIcalculator/urls.py - Project Routes → Account Views: routes home
BMIcalculator/urls.py - BMI Routes → BMI Views: dispatches requests
BMIcalcapp/urls.py - Account Routes → Account Views: dispatches requests
useraccount/urls.py - BMI Views → BMI Ranges: reads ranges
BMIcalcapp/views.py - BMI Views → User Profile: reads and saves
BMIcalcapp/views.py - BMI Views → Suggestion Pages: renders result
BMIcalcapp/views.py - BMI Views → Dashboard Page: renders dashboard
BMIcalcapp/views.py - Account Views → Account Forms: uses forms
useraccount/views.py - Account Views → User Profile: reads and updates
useraccount/views.py - Account Views → BMI Views: calls save and status
useraccount/views.py - Account Views → Email Verification: requests verification
useraccount/views.py - Account Views → Email Service: sends suggestions
useraccount/views.py - Account Views → Django Authentication: authenticates user
useraccount/views.py - User Profile → BMI Ranges: references range
useraccount/models.py - BMI Ranges → Application Database: persists ranges
BMIcalcapp/models.py - User Profile → Application Database: persists profiles
useraccount/models.py - BMI Range Admin → BMI Ranges: registers ranges
BMIcalcapp/admin.py - Email Verification → Email Service: sends confirmation
README.md