Create Read-Only MySQL Database Connection in Django -
Is it possible to add a connection to a database, when only use questions are allowed to use it?
Something good would be such:
database = update to #, enter, etc ... 'default': {'engine': 'Django db. Select 'default_readonly': {'ENGINE': 'django.db.backends.mysql', 'NAME':
As far as I know, to prevent database connection in Django "read-only" mode There is no option to provide. However, you can do this by creating a readable user in your MySQL database engine.
Another idea on the DJ Code side, you need to create your own cursor, which you can see is called execute or executable .
Comments
Post a Comment