from django.shortcuts import render
from .models import Story

# Add the following import
from django.http import HttpResponse

# Define the home view
def home(request):
    return render(request, 'home.html')

def about(request):
    return render(request, 'about.html')

def stories_index(request):
    stories = Story.objects.all()
    return render(request, 'stories/stories_index.html', {
            'stories': stories
    })

