Failed to load resource: the server responded with a status of 500 (Internal Server Error).

I am developing e E-commerce web application. Running my app on Heroku. Please help me to resolve this issue

Frontend - JavaScript, React, HTML, CSS
Backend - Python, Django, MySQL

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



Two things.

First, it may be difficult-to-impossible to determine the cause of the error without the full details of the 500 error from the server. You need to either get the server logs showing what went wrong, configure Django to send the details of the error to your admin email account, or try it with DEBUG=True to get the full error returned to the client.

Second, please don’t post images of code here. Copy/paste the code into the body of your post, between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code, then another line of ```. This forces the forum to keep your code properly formatted.

1 Like