Tagged Questions
0
votes
1answer
10 views
Get list of circles of a user using Google Plus API using python client
I am using Google OAuth2 authentication with the following scope included:
https://www.googleapis.com/auth/plus.login
This allows my application to access a user's Google plus account information ...
0
votes
2answers
26 views
Get Public URL for File - Google Cloud Storage - App Engine (Python)
Is there a python equivalent to the getPublicUrl PHP method?
$public_url = CloudStorageTools::getPublicUrl("gs://my_bucket/some_file.txt", true);
I am storing some files using the Google Cloud ...
0
votes
1answer
10 views
my python custom escape_html(s) function doesn't work (Udacity web development course)
I'm trying to write a function such that html elements will be preserved in html. My custom function below doesn't produce the correct output. Does anyone know why?
def escape_html(s):
for char ...
0
votes
2answers
15 views
How to query based on datetimeproperty in app engine
I have a bunch of posts:
PostModel(db.Model)
...
created = db.DateTimeProperty(auto_now = True)
and the postmodel.html for rendering each post had
{{p.created.strftime("%Y %m %d")}}
And ...
1
vote
1answer
27 views
How do I get the serving URL for Google Cloud Storage file objects on App Engine dev server?
I have a python App Engine app and save files using the Google Cloud Storage API. However I need to get the serving URL for each file.
On production it is easy to figure out what the serving URL is ...
0
votes
1answer
17 views
How to ensure gae memcache results are same in post method as in get method
For the get method, a list is generated from memcache.
For the post method, the user chooses a post from the list from memcache and does something to it. (I retrieve the memcache list again.) How do ...
1
vote
1answer
14 views
GAE Entity group / data modeling for consistency and performance
As a continuation of in this post, this is a bit of a capstone-style question to solidify my understanding of gae-datastore and get some critiques on my data modeling decisions. I'll be modifying he ...
1
vote
1answer
21 views
Missing dependencies for Django on Google App Engine
I'm trying to deploy the Google App Engine Django example from https://developers.google.com/appengine/. While trying to run the local development server (./manage.py runserver) I've been working ...
0
votes
2answers
37 views
Google App Engine No such file or directory:
I'm trying to deploy a project to Google App Engine. The main HTML page I render is stored in the /documents/form.html directory of the project. If I run on my local host it finds the file no problem. ...
0
votes
0answers
28 views
Django on Google AppEngine with CloudSQL: How to connect database (Error 2002, Can't connect to local MySQL server..)
I'm trying to start a Django app to be hosted on GAE, using CloudSQL. Locally, I'm on Mac OSX Maverics, working within a virtualenv (via virtualenvwrapper).
After installing the GAE SDK for Python, ...
0
votes
3answers
36 views
How to schedule a task using Google Task Queues API?
I want to schedule a task (ie. a block of code) to be executed at a later time wherein the time and date of execution along with the other parameters are passed in as the task payload.
So we have a ...
0
votes
1answer
24 views
Not able to make post request to native domain from chrome extension
Description - I have a website www.robustest.com which bind with http://robustestom.appspot.com.
When I am tying to make post request to /user/signup (robustest) from a chrome extension Postman I am ...
0
votes
1answer
29 views
gae-boilerplate and gcs client
I'm trying to work with gae-boilerplate on google app engine and I want to
communicate with the cloud on local development server (for now).
I took the test app example and it runs perfectly but when ...
0
votes
2answers
29 views
GAE Namespace based on subdomain
I am considering a multi-tenant environment where I can have each tenant access a different subdomain and then potentially allocate a namespace based on that domain.
For instance,
...
2
votes
1answer
52 views
GAE Implications of NDB hierarchy and entity groups
I'm trying to better understand the implications of the deep hierarchy described in the GAE NDB docs
"For example, a revision of a message that "belongs to" an owner, might have a key that looks ...
0
votes
0answers
20 views
How to Configure App Engine Multi Class Endpoints
I'm currently setting up a project to use app engine with python 2.7 on mac and the new endpoints with a multi class configuration. I believe I'm following the instructions, but when I execute a GET ...
1
vote
1answer
31 views
Google Cloud Storage thru App Engine pricing
I'm planning to use Google Cloud Storage to store user uploaded images and videos to my GAE app (since GCS seems cheaper than blobstore in GB stored per month). I understand that I can use the images ...
0
votes
1answer
27 views
Generating Python Client Library - for Android
I am trying to Generate the Discovery Doc for the Python API I have developed and am following the guide here ...
0
votes
0answers
14 views
appengine oauth2 decorator with Paypal
I was wondering if anyone knew of a way to create an OAuth2 decorator in appengine for python that works with PayPal.
And maybe show an example of a payment authorization request.
I know there is an ...
0
votes
1answer
50 views
Appengine: Jinja2 vs django performance. Tests on my app show jinja2 x1.5 slower. What default settings could be causing this? [on hold]
I have a pretty complex set of templates in my application, and I am working on improving performance and considering changing from django to jinja2. Deploying two versions of my application that ...
0
votes
2answers
44 views
Python: How to replace all relative urls in a document with absolute urls
I am writing an app for Google App Engine that fetches the content of a url and then writes the content of that external url to the local page. I am able to do this, but the obvious issue is that the ...
0
votes
2answers
38 views
How to programatically get the SDK version in Google Appengine (Python)?
The current version of the Google Appengine is 1.8.8.
It would be useful to be able to look this up at runtime, both on the development server and in production, to check that my application is ...
1
vote
1answer
38 views
How to query for a Computed Property inside a Structured Property in GAE Python
class Name_score(ndb.Model):
def get_value_of_name(self, name, date):
# concatenate "X" and date before returning
return_text = "X"+name+str(date)
return return_text
...
0
votes
1answer
35 views
How to reduce number of memcache lookups?
I've managed to get rid of all the datastore queries for a page but according to appstats there are still 58 memcache lookups that I think can be reduced to 9 or less. SInce there is an iteration over ...
-1
votes
1answer
29 views
How does one delete an entity from google app engine's memcache? [closed]
I just delete an entity from the database, but the memcache doesn't reflect the new database. Does memcache have a delete function?
0
votes
1answer
43 views
Connection to external MySQL instance using Python
I have tried the following code:
MySQLdb.connect(host='xxx', port=3306, user='yyy')
But I get the following error:
(2005, "Unknown MySQL server host ...
I have tried to remove all firewall ...
-3
votes
1answer
27 views
Appengine equivalent of php filter_input()
I'm translating a little website from Php in a managed server to Python+Jinja2 in Appengine.
Is there something similar to the Php filter_input() function in Appengine+Python+Jinja2?
// PHP
if ...
0
votes
1answer
51 views
How to add memcache or otherwise improve latency?
According to webpagetest.org, my 2 pages have very different latency, so it seems that on one page memcache speeds it up or what is otherwise the reason for that page 2 is so slow when I'v tried to ...
0
votes
3answers
72 views
Minimal web framework in Python for a small web application [closed]
I was trying to make a small and simple web application(my first one) using Google AppEngine until I hit a roadblock(Google search returns None 302 on AppEngine) ..would appreciate if you look into ...
0
votes
0answers
19 views
Convert an object of type InMemoryUploadedFile to BlobInfo
I am using Django with appengine:
I have a model like this:
class DataFile(db.Model):
myfile = blobstore.BlobReferenceProperty()
In one of the views I get a file posted via a user form:
...
0
votes
0answers
17 views
app engine, datastore usage for store continuous stream of geo locations [closed]
I'm trying to build a Cab dispatch system(like Uber). I'm confused on how to store an incoming stream of geo-locations sent by drivers(along with other infomation like status(idle/occupied), etc). I'm ...
0
votes
0answers
27 views
AppEngine for Android can't find/run appcfg.py script on Windows
I try to make this sample from google
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial
And I stoped on the step Upload Places Simulated Data. Maybe ...
0
votes
1answer
27 views
Query on ReferenceProperty
Given that I have the following entities in the datastore:
class Owner(db.Model):
name = db.StringProperty()
age = db.IntegerProperty()
class Pet(db.Model):
name = db.StringProperty()
owner ...
0
votes
2answers
30 views
Can't get count for app engine model with many to many relationship
I want to get a count of events for a single user.
My models:
class User(db.Model):
name = db.StringProperty(required = True)
pw_hash = db.StringProperty(required = True)
email = ...
0
votes
1answer
26 views
GAE returns Nonetype when entity clearly exists in datastore
When the user creates a new event, they input "event_name" and "event_time" and select the location from a dropdown list. I then retrieve the latitude and longitude of the event from the PlaceModel ...
0
votes
1answer
29 views
Differents entry points with Google App Engine Python
I want to have an structure like this
http://localhost:8080/
http://localhost:8080/problem2/
http://localhost:8080/problem3/
...
I also want a python structure like this
-src
- app.yaml
...
0
votes
1answer
19 views
How to properly handle wrong urlsafe key provided?
I use the following code to get entity based on urlsafe key given:
q_key = ndb.Key(urlsafe=key)
q = q_key.get()
return q
But in case there is no such entity with given urlsafe key, it return
...
1
vote
1answer
28 views
How to check presence of the record in GAE NDB?
I have two classes:
class User(ndb.Model): # key is user's email
phone = ndb.IntegerProperty(indexed=False)
...
class Question(ndb.Model):
user = ndb.KeyProperty(kind=User)
...
And ...
1
vote
0answers
24 views
Trouble installing sendmail for app engine on mac
Right now when I send mail the log says I'm "not currently sending out real email" and sure enough, when I send mail to myself I don't get anything.
I went into the docs and tried downloading ...
0
votes
1answer
59 views
Google search returns None 302 on AppEngine
I am querying Google Search Engine and it works fine locally by returning the expected results. When the same code is deployed on AppEngine, it returns None 302.
The following program returns the ...
1
vote
0answers
18 views
Google App Engine Launcher Does Not Launch Even If PIL Is Installed [duplicate]
Problem: Sometimes GAE-python runs locally on my OSX. Sometimes it doesn't. When it doesn't I get the following error:
WARNING 2013-12-22 02:03:24,811 api_server.py:331] Could not initialize ...
1
vote
0answers
31 views
How to detect attachment file size for inbound message?
How could I check the size of attached file prior to processing it?
I would like to receive messages with attached files in jpg or png format only less than 1 Mb.
The processing is manual:
class ...
1
vote
1answer
28 views
Trying to loop through all entries in a datastore object and adding post numbers in dictionary
I am parsing the contents of a page into JSON, and I am doing it by going through each post of the datastore object which is returned after the query. But my loop only goes through one iteration ...
2
votes
1answer
121 views
App Engine: uncaught application failure
On all versions of the app I started getting error "uncaught application failure". I'm on python27. Errors began to appear suddenly, last app deployment was ~5 hours ago. From time to time I get the ...
2
votes
1answer
19 views
GAE side panel listing recent post
I'm building a blog using python GAE and jinja2 template. The blog has the typical layout of two columns, the big one for main content and the smaller one for side panel stuff.
Now I'm considering ...
1
vote
2answers
63 views
Loading datastore entities from Python project in Go leads to nested structs slices of slices error
I am writing a module in my Google AppEngine project in Go for performance reasons but need to be able to read from some of the entities I have in datastore. I wrote out the Go code to be able to read ...
0
votes
1answer
38 views
google adwords api python app engine demo updated version
Does anyone know where can I download the latest non depracated version of the demo on this link:
https://developers.google.com/adwords/api/docs/demo-apps#awapi_app_engine_python
also if no, I have ...
1
vote
1answer
26 views
GAE: Push Task Queues - How to push tasks to specific Queues? - using GAE-PHP
Hi i am new to GAE task queues, I created one queue with name anchorextractor, this is showing in queues list.
Then i created a task with the url ('/worker/extractor/1'). after creating if i echo the ...
1
vote
0answers
33 views
Google Appengine query returns nothing
I have a one record NDB called ProductList which includes the following values:
ProductList(key=Key('ProductList', '<0a304802-7263-455b-aa0f-e4f7a574d355>'),strVal=u'software', ...
0
votes
0answers
22 views
Appengine Appstats giving deadlock
i have a Flask app on gae, it is working correctly. I am trying to add Appstats support, but once i enable it, i have a deadlock.
This deadlock is apparently happening when i try to setup a werkzeug ...