RecursionError: maximum recursion depth exceeded

I am a complete newbie to django I am trying to create an app that has 3 views and 3 html pages. the tutorials I have followed so far have not shown any errors however for this one I am getting the error

while _is_wrapper(func):
          ^^^^^^^^^^^^^^^^^
  File "C:\Users\botan\AppData\Local\Programs\Python\Python312\Lib\inspect.py", line 768, in _is_wrapper    return hasattr(f, '__wrapped__') and not stop(f)
                                             ^^^^^^^
RecursionError: maximum recursion depth exceeded

C:\Users\botan\Desktop\project\myproject>

I have tried to google this error however the only answer I seem to get is that it has something to do with an iterating code that I cannot find? I posted some of my code below for some reason also the os is not accesed

import os
from django.shortcuts import render

def home(request):
    return render(request, 'myproject/home.html')

def deck(request):
    # Your deck view logic goes here
    return render(request, 'myproject/deck.html', {'decks': {'Deck1': 10, 'Deck2': 15}})

def card(request):
    # Your card view logic goes here
    return render(request, 'myproject/card.html', {'card': {'word': 'Example', 'definition': 'A sample definition'}})
# myproject/views.py
import os
from django.shortcuts import render

def home(request):
    return render(request, 'myproject/home.html')

def deck(request):
    # Your deck view logic goes here
    return render(request, 'myproject/deck.html', {'decks': {'Deck1': 10, 'Deck2': 15}})

def card(request):
    # Your card view logic goes here
    return render(request, 'myproject/card.html', {'card': {'word': 'Example', 'definition': 'A sample definition'}})

and here are the html pages

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Card</title>
    <link rel="stylesheet" href="{% static 'myproject/css/styles.css' %}">
</head>
<body>
    <!-- Your card page content goes here -->
    <h1 class="main-heading">Card Page</h1>
    <div class="card-details">
        <p>{{ card.word }} - {{ card.definition }}</p>
        <!-- Add other card details as needed -->
    </div>
</body>
</html>
!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Home</title>
    <link rel="stylesheet" href="{% static 'myproject/css/styles.css' %}">
</head>
<body>
    <!-- Your home page content goes here -->
    <h1 class="main-heading">Welcome to the Home Page</h1>
</body>
</html>

Side note: When posting code or templates here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of modifying your original post for this. Please remember to do this in the future.)

At what point are you getting this error?

Is this error happening when you start running your project, or when you’re trying to access a page? If this is happening when you access a page, which page?

You’ve posted a couple of templates, but did not identify the templates by name.

Also, it would be helpful if you posted the complete traceback. (Please post the traceback surrounded between lines of ``` as described above.)