So I just recently bought some web hosting and I’m trying to get my site setup and when I try submitting the form I get a “Forbidden (403) CSRF verification failed. Request aborted.” And then it emails me the details on what went wrong and it says “ViewDoesNotExist: Could not import users.views. Error was: No module named users.views” when I clearly have a folder named users with a Python file named views inside of it. Is there some reason that it wouldn’t be recognizing the folder?
So I just recently bought some web hosting and I’m trying to get my
Share
With regard the 403 error; If you have a form you need to provide a CSRF token too:
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/