This is the error I got and i am not able to get the admin login screen.
AttributeError at /admin/ 'WSGIRequest' object has no attribute 'user' Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 2.1.2 Exception Type: AttributeError Exception Value:
'WSGIRequest' object has no attribute 'user' Exception Location: C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\contrib\admin\sites.py in has_permission, line 186 Python Executable: C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\python.exe Python Version: 3.7.3 Python Path:
['C:\Users\Neptune\Desktop\MyMusic', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\python37.zip', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\DLLs', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\lib', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\lib\site-packages', 'C:\Users\Neptune\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django-1.9.1-py3.7.egg'] Server time: Tue, 4 Jun 2019 17:37:30 +0000
settings.py, can you post that also in this question - Sammy Juserattribute is normally added to requests by middlewear (specificallydjango.contrib.auth.middleware.AuthenticationMiddleware), so theMIDDLEWAREof yoursettings.pywould be the first place to look. (See also docs.djangoproject.com/en/2.2/ref/request-response/…) - Jack Brounstein