Forums

It shows IntegrityError at /signup/ when hosting through pythonanywhere

I am trying to build a project and I have been able to successfully host the website locally and it is working perfectly fine. This time I tried hosting on pythonanywhere and it shows IntegrityError at /signup/ I don't really understand what it means.

I am attaching the whole error file [Error][Error]1

Github Link

It looks like you're trying to save an object to database with a None value on some field where it's not allowed. Check signup_view in authentication_views line 29 (unless you've changed something) to find what it is.