Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Building a Short Story Generation Service With Django

via CodeSignal

Overview

Transform text prompts into captivating short stories using Anthropic's Claude API! Step-by-step, you'll build a short story generation service using Django, configure API requests, and integrate it into a functional web application.

Syllabus

  • Unit 1: Creating and Using the Story Prompt Template
    • Reading and Displaying a Story Prompt Template File
    • Implementing Format Prompt Method for Story Generation
    • Testing Error Handling in PromptManager
    • Implementing Comprehensive Tests for PromptManager
  • Unit 2: Storing and Retrieving Generated Stories
    • Fixing the Story Retrieval Method in StoryManager
    • Testing StoryManager Functionality
    • Adding Error Handling for Story ID Retrieval
    • Implementing a Keyword Search Feature in StoryManager
  • Unit 3: Generating and Managing Short Stories
    • Adding Input Validation to StoryGeneratorService
    • Implementing Mock Responses for API Testing
    • Implementing Structured Error Logging in Story Generator Service
  • Unit 4: Implementing the Story Generator View
    • Implementing Input Validation in Django Story Generator
    • Implementing Rate Limit Error Handling for Story Generator API
    • Implementing Proper JSON Response Formatting in Django Views
  • Unit 5: Building an API for the Short Story Generator with Django
    • Setting Up Django URL Routing
    • Implementing a Health Check Endpoint in Django API
    • Implementing Custom 404 JSON Error Handler in Django API
    • Changing the port of the Django app

Reviews

Start your review of Building a Short Story Generation Service With Django

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.