I try to create an admin user in my application, but even I do not include any code, it gives the error 'CSRF token missing or incorrect'. I can't find what to do. Can anyone solve this problem?
I tried all the suggestions from my friends, and Django documentation, but none of them could solve it.
Actually, there is no need to paste my code, because as I mentioned before even without any HTML templates it is not possible to create an admin user.
Admin login normally does require a CSRF token, but that's usually all taken care for you. Despite being as you have faced the following problem, this could be generating from your browser extensions.
OR just try from another browser which does not have any extensions and cookies are present.