This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from cloudsearch import connect_cloudsearch, get_document_service | |
| endpoint = 'paste your doc service endpoint here' | |
| service = get_document_service(endpoint=endpoint) # Get a new instance of cloudsearch.DocumentServiceConnection | |
| # Presumably get some users from your db of choice. | |
| users = [ | |
| { | |
| 'id': 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is not used unless SQLALCHEMY_BINDS is not present | |
| SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| SQLALCHEMY_BINDS = { | |
| 'master': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8', | |
| 'slave': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| } |