You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment GeoNode can be put in read-only mode through the Configuration.read_only DB variable.
A new boolean FORCE_READ_ONLY_MODE setting will be implemented to be able to force the read-only mode from settings.
The variable will override any configuration set from DB.
A quick solution can be to do it within the Configuration.load() method, which will need to override the inherited SingletonModel.load() method.
The value obtained from FORCE_READ_ONLY_MODE will override the value stored inside the returned obj.
The text was updated successfully, but these errors were encountered:
* Add env-var to override the readonly mode
* Fix flake8 issue
* Add test coverage
* Add test coverage
* Add test coverage
* Fix broken test
(cherry picked from commit a655d8d)
At the moment GeoNode can be put in read-only mode through the Configuration.read_only DB variable.
A new boolean
FORCE_READ_ONLY_MODE
setting will be implemented to be able to force the read-only mode from settings.The variable will override any configuration set from DB.
A quick solution can be to do it within the
Configuration.load()
method, which will need to override the inherited SingletonModel.load() method.The value obtained from FORCE_READ_ONLY_MODE will override the value stored inside the returned
obj
.The text was updated successfully, but these errors were encountered: