Failed to load resource: the server responded with a status of 500 (Internal Server Error) - Frontend (Javascript, React) connecting with Backend(Python, Django):

I am developing e E-commerce web application. I developed my backend from Mosh’s Django course. Running my app on Heroku

Frontend - JavaScript, React, HTML, CSS

While the user clicks on signup button after filling all the details its showing a error in the frontend console - 500 internal server with API endpoint register.

Views.py


AuthModal.js



Hi usually with debug turned on django will give you a detailed report on where it is coming from but from what I can see in the register view which is likely responsible for the sign up either the create customer or create user try blocks will return 500 error, so try making some changes there

Thanks for your response. I am a begineer and developing my first full stack application. Can we please connect today or in weekends between 9 AM - 1 PM CST or 2 PM - 5 PM CST or 7 PM CST - 10 PM CST?

Please let me know your availability and timezone.