+

Cancel

Using the settings

Settings are stored in the settings table of sqlite:///settings.sqlite3 with the username as key. Settings are retained even after re-starting Gramex. You can access the settings via:

from datastore import DBStore
user = handler.get_current_user()
settings = DBStore('sqlite:///settings.sqlite3', table='settings').get(user or '', {})

The result is:

{}