[Answered ]-Django Form Validation KeyError

2👍

[the error] appears to happen at line 44, no matter what is at line 44. If it’s in a different function? Doesn’t matter, line 44.

You need to restart your server after changing code. If the server is still saying the error is on line 44, that means that you haven’t restarted the server since changing the code.

If you are using the Django developement server (i.e. ./manage.py runserver) then it should detect code changes and restart. However if you are in production, then you may need to restart your server (e.g. Apache) manually.

Hopefully restarting your server will make the error go away. If not, please update the error with the full form and full traceback.

Leave a comment