does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import
Your import is incorrect. The views.py
containing login
and logout
is in the django.contrib.auth
app:
from django.contrib.auth.views import login, logout