-
Notifications
You must be signed in to change notification settings - Fork 240
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 google datastore as backend #109
base: main
Are you sure you want to change the base?
Conversation
hey @fengsp, any chance to merge this any time soon? |
Hi @kiptoomm, You will need to set the following settings into the Flask application in order to use our fork: 'SESSION_TYPE' = 'datastore'
'GCLOUD_APP_PROJECT_ID': '<your_app_project_id>' Best regards. |
Thanks @alvarogf-vt, nice solution. With this implementation, how are the session objects stored? For example, with a mongodb backend, they're stored in a database called |
Hey @alvarogf-vt, I also noticed/had a couple of issues/questions arising from jinfantes@2162ca0:
However, it somehow interfered with my other calls to a remote instance of data store that I use for storing other values (that is, it looks like I cannot fetch my cloud datastore entities while using the datastore emulator) :( Any advice on how to use your implementation locally would be greatly helpful. |
Hi @kiptoomm I meant you need to configure the Flask application as above: import flask
app = flask.Flask(__name__)
app.config['GCLOUD_APP_PROJECT_ID'] = os.getenv('GCLOUD_APP_PROJECT_ID') so you can pass GCLOUD_APP_PROJECT_ID as an os environment variable, this variable is needed in order to connect with your datastore instance once it has been deployed on Google cloud platform. You can run your application with the google datastore emulator by executing GOOGLE_APPLICATION_CREDENTIALS needs to be set in order to execute |
No description provided.