How ahmedyasser1-9/web-assignment works
Tasty Django is a recipe-sharing web application with recipe browsing and search, recipe creation and editing, favorites, and user sign-up and login. A browser user reaches HTML pages served by Django; the JavaScript frontend requests recipe and favorites data and submits changes through API routes. Those routes dispatch to views, which read and update recipe, favorite, and user records. The graph also preserves the Django admin capability. Source excerpts show the main request paths; some frontend pages and view implementations were not sampled, so their internal links are omitted.
Main entry points: recipes/urls.py API routing · views.py Favorites API · models.py Recipe records · tasty_django/urls.py Root page routing
Components 15
Browser experience
- HTML pages
tasty_django - Recipe interactions
tasty_django/JS/functions.js - Recipe detail view
tasty_django/JS/recipe-template.js
Django web layer
- Root page routing
tasty_django/tasty_django/urls.py - API routing
tasty_django/recipes/urls.py - Recipe API
tasty_django/recipes/views.py - Favorites API
tasty_django/recipes/views.py - Account API
tasty_django/recipes/views.py - API serializers
tasty_django/recipes/serializers.py
Recipe and account domain
- Recipe records
tasty_django/recipes/models.py - Favorite records
tasty_django/recipes/models.py - User accounts
tasty_django/recipes/models.py - SQLite database
tasty_django/db.sqlite3
Administration
- Django admin
tasty_django/recipes/admin.py
Other components
- Browser user
Connections 18
- Browser user → HTML pages: opens pages
tasty_django/tasty_django/urls.py - Root page routing → HTML pages: serves pages
tasty_django/tasty_django/urls.py - Root page routing → API routing: includes routes
tasty_django/tasty_django/urls.py - API routing → Recipe API: routes recipes
tasty_django/recipes/urls.py - API routing → Favorites API: routes favorites
tasty_django/recipes/urls.py - API routing → Account API: routes accounts
tasty_django/recipes/urls.py - Recipe interactions → Recipe API: requests recipes
tasty_django/JS/functions.js - Recipe detail view → Recipe API: fetches recipes
tasty_django/JS/recipe-template.js - Recipe interactions → Favorites API: requests favorites
tasty_django/JS/functions.js - Recipe API → Recipe records: reads and writes
tasty_django/recipes/views.py - Favorites API → Favorite records: reads and writes
tasty_django/recipes/views.py - Favorites API → Recipe records: looks up recipes
tasty_django/recipes/views.py - Account API → User accounts: checks accounts
tasty_django/recipes/views.py - API serializers → Recipe records: serializes records
tasty_django/recipes/serializers.py - Django admin → Root page routing: served by admin route
tasty_django/tasty_django/urls.py - Recipe records → SQLite database: persists in
- Favorite records → SQLite database: persists in
- User accounts → SQLite database: persists in