Re: check_password in contrib auth tries to update the database

2014-06-01 Thread suhridsatyal
Hi Erik, Thanks for the explanation. This looks like something I could try. Another approach that I found recently was to use database routers[1]. This would not cause problems with password upgrades, but we would need to change some database permissions. [1] https://docs.djangoproject.com/en/d

Re: check_password in contrib auth tries to update the database

2014-05-31 Thread Erik Romijn
Hello Suhrid, On 30 May 2014, at 15:58, suhridsat...@proteus-tech.com wrote: > check_password method of AbstractBaseUser in django.contrib.auth.models tries > to update the database. > This causes problems when this code executes on a read-only slave database. > >def check_password(self, ra

check_password in contrib auth tries to update the database

2014-05-30 Thread suhridsatyal
Hi, I am getting this error > cannot execute UPDATE in a read-only transaction from a method in auth module that supposedly checks for password. check_password method of AbstractBaseUser in django.contrib.auth.models tries to update the database. This causes problems when this code executes