1👍
✅
As said in the comments, Django’s login function from django.contrib.auth takes 2 arguments, so the error you are getting is because the function you are calling is another function named login from your application .
Source:stackexchange.com