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

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