169👍
✅
Your view has the same name as the auth login function, so it is hiding it. Change the view name, or import the function under a different name eg from django.contrib.auth import login as auth_login
.
8👍
You have a function def login
and a library import with the same name.
What you need is to change one of them.
Example :
- def user_login // import login as Login_process
- [Django]-Django Reverse with arguments '()' and keyword arguments '{}' not found
- [Django]-"No module named simple" error in Django
- [Django]-Django error: got multiple values for keyword argument
4👍
You can not use same name for your def
whom you imported.
so change your def name
from def login
to another one.
- [Django]-How to debug Django commands in PyCharm
- [Django]-How can I set two primary key fields for my models in Django?
- [Django]-Sending post data from angularjs to django as JSON and not as raw content
0👍
You have to change your def name using another name because name of your your module and function
- [Django]-Django or Django Rest Framework
- [Django]-Why would running scheduled tasks with Celery be preferable over crontab?
- [Django]-How to strip html/javascript from text input in django
Source:stackexchange.com