There is a site on Django. In debug mode, everything worked fine. Then I posted the site on the hosting. When starting a website from a hosting service, everything is fine, but when I try to log in from the admin panel they write that the password is incorrect. Hosting does not support https. I guess the reason is this. I think session_cookie_secur = True, so I want to change to False, but I don’t know how.

  • And the database in which the password is written was placed? Or how the password was set on the hosting? - andreymal
  • Regarding SESSION_COOKIE_SECURE — it defaults to False ; if you do not set True anywhere with your own hands, then it will not be True. And in my opinion, it should not matter to the error about the password (if there are problems with the session cookie, there will most likely be an error about the csrf-token, but did not check the exact behavior) - andreymal 5:56 pm
  • Yes, posted, sql. With git everything sent to pythonanywhere. I did not change anything, but I see no other reason why. Here they wrote about it. Stackoverflow.com/a/314544/218774 - D.Ryksd
  • one
    If you just want to change it, then in the same place, next to DATABASES, write SESSION_COOKIE_SECURE = False and that's all, most likely it will not help you, because the reason is probably something else - andmal
  • one
    This means that you, apparently, did not post the base. So fill it in again or copy to the hosting manually without a gita. In any case, the git is not intended to store databases or passwords - andreymal

0