Menu
  • HOME
  • TAGS

Google Appengine Search API to Datastore Query

google-app-engine,app-engine-ndb,google-search-api,google-app-engine-python

Use ndb.get_multi or just de-normalize that data and store it in the search API for faster access. ndb.get_multi will use single batch to get all keys and use only N read operations. (0.05 Million Ops is Free)...

Google push-to-deploy release pipeline disabled?

python,google-app-engine,jenkins,google-compute-engine,google-app-engine-python

I'm a product manager for Google Cloud. Based on comprehensive customer feedback and evaluation we don't believe that Push to Deploy meets the expectations and needs for most of our customers. We want to provide great quality, sustainable products to customers that meet the needs of the vast majority of...

Application has exceeded serving quota even after making it paid

python,google-app-engine,google-app-engine-python

You can view and edit the Daily Budget of paid apps in the new Google Developers Console by: Go to http://console.developers.google.com Login, if not already Select your paid app project On the left menu bar, go to Compute -> App Engine -> Settings You'll see your "Daily Budget" there Click...

How do I only show certain items in a bootstrap navbar based on cookies in Python?

python,twitter-bootstrap,google-app-engine,google-app-engine-python

You could use something like this: {% if user %} <ul class="nav navbar-nav"> <li><a href="/">Home</a></li> <li><a href="/about">About</a></li> <li><a href="/post">New Post</a></li> <li><a href="/logout">Logout</a></li> </ul> {% elif not user %} <ul class="nav navbar-nav"> <li><a href="/">Home</a></li> <li><a href="/about">About</a></li> <li><a...

APP.YAML: Combine different URLs-same file, static file serving & source code access in app.yaml

python,google-app-engine,app.yaml,google-app-engine-python

The answer is oh so simple: make every access path application_readable, because negative permissions are stronger than positive ones. - url: /img static_dir: application/static/img application_readable: true # <---- !!!!! - url: /static static_dir: application/static application_readable: true So kind of eat my own words, it is a simple case of application_readable:true...

Does AppEngine Cloud Trace require AppStats?

google-app-engine,appstats,google-app-engine-python,google-cloud-trace

Cloud Trace is in beta, meaning "it's not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes", while AppStats is a supported component of App Engine. The implication, to me, is that you probably should not yet depend on Cloud Trace in production applications, but...

AppEngine urlfetch validate_certificate=False/None not being respected

google-app-engine,google-app-engine-python

One solution appears to be to downgrade to the native OS X Python, being version 2.7.6.

App engine tasks are not executed in defined target

google-app-engine,google-app-engine-python

Okay, I found out what the problem was. I had thought that when using a dispatch.yaml, the "sub" modules (my 'tasks' module) are mounted back at the base url of the respective module ('/*'). I had come to this belief from looking at the example provided here https://github.com/GoogleCloudPlatform/appengine-modules-helloworld-python where you...

Google Drive / App Engine for Document Management System

google-app-engine,google-drive-sdk,document-management,google-apps-for-education,google-app-engine-python

Since you'll be building your own software, the answer to "will it do what I want" is always "yes, eventually". You'll need to make a decision about document formats, which in turn will influence your indexing mechanism. Specifically, you have two primary options:- convert the files to Google document formats...

App Engine - NDB query with projection requires subproperty?

google-app-engine,gae-datastore,app-engine-ndb,google-app-engine-python

That query is not possible. Unfortunately the exception isn't very clear, but the issue is the result of how sub-properties are actually stored. ndb explodes your StructuredProperty so that each value is included separately. So, for example, the entity: Contact(name="Bob", addresses=[ Address(type="Work", city="San Francisco"), Address(type="Home", city="New York")]) This will get...

GAE appends current url to css path thus causing 404 on files

google-app-engine,routes,google-app-engine-python

Use an absolute path for your CSS: <link rel="stylesheet" href="/css/main.css"> ...

How do I make sure imported files are uploaded to Google App Engine?

python,google-app-engine,google-app-engine-python

The update process doesn't really do any analysis of the code, it just uploads everything it finds under the root folder (where your app.yaml lives), as noted in the docs: The update action creates or updates the app version named in the app.yaml file at the top level of the...

ComputedProperty only updates on second put()

python,google-app-engine,app-engine-ndb,google-app-engine-python

The real problem seemed to be the order that GAE calls _prepare_for_put() on the StructuredProperty relative to the call to _pre_put_hook() of the surrounding Model. I was writing to address_components in the Item._pre_put_hook(). I assume GAE computed the ComputedProperty of the StructuredProperty before calling the _pre_put_hook() on Item. Reading from...

Get properties of ndb model instance where Python name != datastore name

python,google-app-engine,app-engine-ndb,google-app-engine-python

ndb's own Model._to_dict method does it as follows (simplifying): for prop in self._properties.itervalues(): name = prop._code_name values[name] = prop._get_for_dict(self) So: the name is taken from the _code_name of each property (not its key in self._properties, and the value is delegated to the property itself (via its _get_for_dict method) to allow...

How to execute tasks in (FIFO) order using Google App Engine Task Queues?

google-app-engine,google-app-engine-python

Consider using the Pipelines API: https://github.com/GoogleCloudPlatform/appengine-pipelines They have already done the work for you: https://github.com/GoogleCloudPlatform/appengine-pipelines/wiki/Python#user-content-execution-ordering class LogWaitLogInOrder(pipeline.Pipeline): def run(self, message1, message2, delay): with pipeline.InOrder(): yield LogMessage(message1) yield Delay(seconds=delay) yield LogMessage(message2) yield LogMessage('This would happen immediately on run') The pipelines api also gives you...

Migrating from App Engine Files API

google-app-engine,google-app-engine-python

1) No, you can still use the blobstore. You can also upload files to the blobstore when you use the BlobstoreUploadHandler. 2) Migration is easy when you use the blobstore, bacause you can create a blobkey for GCS objects. And when you use the default GCS bucket you have free...

Unable to deploy an application module on AppEngine

google-app-engine,google-app-engine-python

Incrementing the version (in the .yaml files), redeploying both modules, and activating the new version finally solved the problem.