Python Django REST Infinite Recursion Problem

As of late I've started working towards learning REST Api with Django Rest Framework, Cors headers, and mssql connector both for personal purposes, and for a project I'm working on. Beneath I'll include photos of the work I've done, but the main problem is the photo I'm going to show first. An error that I have yet to find the root cause.

enter image description here

Working with this project, I got close to completing a Get/Post/Put method, but once I attempted to run the server itself, it ended in an endless recursion. I've attempted to search a variety of threads but I'm quite unsure what the problem may be. I'll leave images of my code as to make this much easier.

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

The images in order are the main URL.py document, models.py, serializer.py, url.py within my app, my view, and the Database settings. I doubt the database settings are causing the recursion, but it never hurts to check as well. As for the major imports I'm using Django 4.0, Django-cors-headers, DjangoRestFramework and MSSQL-Django.

If you need more information, or find the error. Let me know and I'll respond as quickly as possible.

It looks like you are including BingeWatcherApp.urls inside itself. This is what leads to the error

Back to Top