Django - No User matches the given query

0

Good afternoon, I'm new to Django and I have the following error:

I can not access the admin. I have checked the url several times and everything is correct. Until a day ago I was accessing the admin normally.

    
asked by anonymous 21.05.2018 / 20:51

2 answers

0

2 things to check.

  • Route conflict.
  • If you have the admin in the INSTALLED_APPS tuple in settings.py.
  • 21.05.2018 / 20:58
    0

    Solved. The problem was when I was logging out. When trying to open the login screen, it had a middleware trying to access the request.user that had already been deleted. Thank you Michael. Hugs

        
    21.05.2018 / 23:02