New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to access master database in slave state #395
Comments
I guess this exception is related to "django_replicated" package and has nothing to do with "django-payments". I suppose you misconfigured "django_replicated" and wrote url for read only database for "db_for_write". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get this error when I try see payment_details view
`
RuntimeError at /payment/3
Request Method: | GET -- | -- http://127.0.0.1:8000/payment/3 4.2.7 RuntimeError Trying to access master database in slave state C:\Users\admin\wwork\env\lib\site-packages\django_replicated\router.py, line 78, in db_for_write openbook_payments.views.payment_details C:\Users\admin\wwork\env\Scripts\python.exe 3.8.0 ['C:\\Users\\admin\\wwork\\ok-api', 'c:\\users\\admin\\appdata\\local\\programs\\python\\python38\\python38.zip', 'c:\\users\\admin\\appdata\\local\\programs\\python\\python38\\DLLs', 'c:\\users\\admin\\appdata\\local\\programs\\python\\python38\\lib', 'c:\\users\\admin\\appdata\\local\\programs\\python\\python38', 'C:\\Users\\admin\\wwork\\env', 'C:\\Users\\admin\\wwork\\env\\lib\\site-packages'] Sun, 31 Dec 2023 12:24:51 +0100You’re seeing this error because you have
DEBUG = True
in your Django settings file. Change that toFalse
, and Django will display a standard page generated by the handler for this status code.The text was updated successfully, but these errors were encountered: