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?
Have you turned on the admin panel?
- Add django.contrib.admin to the INSTALLED_APPS parameter. The order of the elements in INSTALLED_APPS does not matter.
- Make sure that INSTALLED_APPS contains django.contrib.auth, django.contrib.sessions, and django.contrib.contenttypes . The administrator interface requires connecting these three packages.
- Make sure MIDDLEWARE_CLASSES contains django.middleware.common.CommonMiddleware and django.contrib.sessions.middleware.SessionMiddleware and also django.contrib.auth.middleware.AuthenticationMiddleware .
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