Skip to content
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

Add support for selective read-only db when multi-databases are used #10

Merged
merged 2 commits into from
Oct 14, 2015

Conversation

khj1218
Copy link

@khj1218 khj1218 commented Oct 14, 2015

It would be nice to turn on read-only mode per db when multi databases are used.

@khj1218
Copy link
Author

khj1218 commented Oct 14, 2015

New settings:
DB_READ_ONLY_ERROR_MESSAGE = 'custom error message'
DB_READ_ONLY_DATABASES = () # e.g. tuple of database keys ('default', 'foo')

@streeter
Copy link
Owner

Looks good to me!

streeter added a commit that referenced this pull request Oct 14, 2015
Add support for selective read-only db when multi-databases are used
@streeter streeter merged commit 18fec21 into streeter:master Oct 14, 2015
@streeter
Copy link
Owner

Pushed in version 0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants