Django framework does not allow admin panel. It does not display any errors at all. Username and password are correct, there are no authorization errors. Synchronization with MySQL database produced. With what it can be connected?

  • What does "not let" mean? What is the output? What is in the logs? - caravaneer
  • one
    admin panel is not included mean - johniek_comp
  • logs are messages in the terminal after launch (python runserver)? Can anyone else see more information? - Bandicoot87
  • just in case using createsuperuser you can create another admin and try through it, in my project you don’t display errors with the wrong password / login in one project, even if they aren’t correct. - rnd_d pm

3 answers 3

Have you turned on the admin panel?

  1. Add django.contrib.admin to the INSTALLED_APPS parameter. The order of the elements in INSTALLED_APPS does not matter.

  1. Make sure that INSTALLED_APPS contains django.contrib.auth, django.contrib.sessions, and django.contrib.contenttypes . The administrator interface requires connecting these three packages.

  1. Make sure MIDDLEWARE_CLASSES contains django.middleware.common.CommonMiddleware and django.contrib.sessions.middleware.SessionMiddleware and also django.contrib.auth.middleware.AuthenticationMiddleware .

  • checked everything was originally included. I don't even know what to think - Bandicoot87

In general, figured out. The problem was due to the specific third-party module

    A similar misfortune happened. The reason was to install SESSION_COOKIE_SECURE = True on the site without HTTPS