How badrinath63/digital-story-teller-using-genai works
Digital Story Teller is a Django web app for community-authored and curated stories. The main workflow routes a visitor or member request to Django views, which validate forms, operate on story and account records, then render pages for browsing, moderation, reactions, comments, and sharing. Story creation also includes AI-assisted generation; configuration indicates email and WhatsApp integrations. The README is empty, so capabilities are inferred from the URL routes, templates, models, and sampled code; unsampled view internals limit certainty about some integrations.
Main entry points: views.py Request handlers · models.py Story records · urls.py URL routing · story_generator.py Story generation
Components 21
Web and accounts
- URL routing
digital_story_teller/digital_story_teller/urls.py - Request handlers
digital_story_teller/digital_story_app/views.py - Input forms
digital_story_teller/digital_story_app/forms.py - Account records
digital_story_teller/digital_story_app/models.py - Web pages
digital_story_teller/digital_story_app/templates
Story lifecycle
- Story records
digital_story_teller/digital_story_app/models.py - Story categories
digital_story_teller/digital_story_app/models.py - Story moderation
digital_story_teller/digital_story_app/views.py - Story browsing
digital_story_teller/digital_story_app/views.py - Story files
digital_story_teller/digital_story_app/templates/view_story_file.html
Community engagement
- Likes and reactions
digital_story_teller/digital_story_app/models.py - Story comments
digital_story_teller/digital_story_app/models.py - Notifications
digital_story_teller/digital_story_app/models.py
Generation and sharing
- Story generation
digital_story_teller/digital_story_app/utils/story_generator.py - Email delivery
digital_story_teller/digital_story_app/views.py - WhatsApp sharing
digital_story_teller/digital_story_app/views.py
Other components
- Visitor or member
- Gemini AI
- SMTP service
- Twilio
- MySQL database
Connections 27
- Visitor or member → URL routing: requests
digital_story_teller/digital_story_teller/urls.py - URL routing → Request handlers: dispatches
digital_story_teller/digital_story_teller/urls.py - Request handlers → Input forms: validates with
digital_story_teller/digital_story_app/views.py - Request handlers → Web pages: renders
digital_story_teller/digital_story_app/views.py - Request handlers → Account records: reads and writes
digital_story_teller/digital_story_app/views.py - Request handlers → Story records: reads and writes
digital_story_teller/digital_story_app/views.py - Request handlers → Story categories: manages
digital_story_teller/digital_story_app/views.py - Request handlers → Story moderation: routes moderation
digital_story_teller/digital_story_teller/urls.py - Story moderation → Story records: updates status
digital_story_teller/digital_story_app/views.py - Request handlers → Story browsing: routes browsing
digital_story_teller/digital_story_teller/urls.py - Story browsing → Story records: reads stories
digital_story_teller/digital_story_app/views.py - Request handlers → Story files: renders file views
- Request handlers → Likes and reactions: records reactions
digital_story_teller/digital_story_app/views.py - Request handlers → Story comments: reads comments
digital_story_teller/digital_story_app/views.py - Request handlers → Notifications: manages notices
digital_story_teller/digital_story_app/views.py - Request handlers → Story generation: generates stories
- Story generation → Gemini AI: generates content
digital_story_teller/digital_story_app/utils/story_generator.py - Request handlers → Email delivery: shares by email
digital_story_teller/digital_story_app/views.py - Email delivery → SMTP service: sends mail
- Request handlers → WhatsApp sharing: shares by WhatsApp
digital_story_teller/digital_story_teller/urls.py - WhatsApp sharing → Twilio: uses provider
- Story records → MySQL database: stored in
- Account records → MySQL database: stored in
- Story categories → MySQL database: stored in
- Likes and reactions → MySQL database: stored in
- Story comments → MySQL database: stored in
- Notifications → MySQL database: stored in