google-app-engine

How to use static files with django nonrel

a 夏天 提交于 2020-01-22 11:23:27
问题 I'm trying to use the Django nonrel project for google app engine. I setup the test project as described here. I added a new folder to the project named "static" for my static files. And for the app.yaml file i added the lines; - url: /static static_dir: static I can't reach my static files. Do i have to do additional configuration? Thx in advance. 回答1: app.yaml have nothing to do with Django, but it does configures App Engine front-end. The answer depends on whether you want to serve static

Weird error in BigQuery

旧街凉风 提交于 2020-01-22 08:08:25
问题 I trying to execute query directly from web console https://bigquery.cloud.google.com One time query executed and I got result another time I got the error on the same query: Error: TABLE_QUERY expressions cannot query BigQuery tables. I also tried with different query option "Use Cached Results", "Interactive" and "Batch" behaviour the same. Why it could happens? 回答1: TABLE_QUERY filters are intended to query only metadata. For a brief period of time, it was possible to query table data in

session id cookie in gwt rpc

懵懂的女人 提交于 2020-01-22 06:45:05
问题 Assuming I'm rolling my own session code, what's the right way to generate a unique and secure session id cookie in java. Should I not be rolling my own but using something that's already been standardized? I'm using gwt and the google app-engine platform. How do I make sessions persist across browser/server restarts? 回答1: Using Servlet Sessions in GWT In the remote service implementation class: String jSessionId=this.getThreadLocalRequest().getSession().getId(); In the client code: String

Handling cron jobs on staging environment on google app engine

孤街醉人 提交于 2020-01-22 03:01:30
问题 I want to set up a staging environment on Google App Engine and have found good guidance for this in the following question: How to set up a staging environment on Google App Engine The only unanswered question I have is how to handle Cron jobs in this case. Ideally I'll just have to change the version to deploy to production, however I fear that that would mean that all cron jobs also run on the staging version, or is this not the case? 回答1: If you're using a different version approach you

Is it possible to add headers to emails being sent by app-engine?

一世执手 提交于 2020-01-22 02:20:11
问题 I'm currently putting the finishing touches to an application for a client, this application sends daily emails to subscribers, is it possible to add custom headers to the email so that certain variables can be tracked, like day number (X-Day-Number) etc... 回答1: There isn't a documented way to do it. Perhaps you should suggest it on the issue tracker. http://code.google.com/p/googleappengine/issues/list Of course, if you're really determined, you can create your own email sending gateway on a

Incomplete Google App Engine Documentation on Conversion API

。_饼干妹妹 提交于 2020-01-22 01:00:50
问题 I am trying to convert a HTML string into a .PNG file. Thanks to Nick Johnson who pointed me to GAE Conversion API see previous post Here. I use the GAE Conversion API which works but my images in my HTML string doesn't display. In the Documentation on GAE Conversion API there is a reference to Adding Assets and a mention of static/icon.gif which I think may address my problem but that documentation is incomplete. Can anyone please assist? My HTML conversion to .PNG works but all images e.g

Firestore limit

梦想与她 提交于 2020-01-21 23:32:38
问题 Firestore offers 50000 documents read operations as part of its free bundle. However, in my application, the client is fetching a collection containing price data. The price data is created over time. Hence, starting from a specific timestamp, the client can read up to 1000 documents. Each document represents one timestamp with the price information. This is means that if the client refreshes his/her web browser 50 times, it will exhaust my quota immediately. And that is just for a single

Firestore limit

老子叫甜甜 提交于 2020-01-21 23:32:34
问题 Firestore offers 50000 documents read operations as part of its free bundle. However, in my application, the client is fetching a collection containing price data. The price data is created over time. Hence, starting from a specific timestamp, the client can read up to 1000 documents. Each document represents one timestamp with the price information. This is means that if the client refreshes his/her web browser 50 times, it will exhaust my quota immediately. And that is just for a single

Not able to change the frontend instance class in appengine application

别等时光非礼了梦想. 提交于 2020-01-21 17:17:07
问题 Specified in app.yaml instance_class: F2 automatic_scaling: min_idle_instances: 5 max_idle_instances: automatic Is their any way out to check instance tier/class from developer console? Only able to guess instance class from billing status costing $0.05 per hour ie F1 instance class. 回答1: On the new console https://console.cloud.google.com, go to App Engine, then Versions. Under the dropdown More Columns, select Instance Class, then the instance class column will be displayed. 回答2: I could

Is there an equivalent to Rails’ “flash” messages in GAE (python)?

我怕爱的太早我们不能终老 提交于 2020-01-21 11:42:35
问题 Ruby on Rails has a way that you can set a message, like flash[:notice] and flash[:error , that the user will see at the next opportunity. It’s especially useful for things like notifying the user of failure to log in, etc., when they are redirected (e.g. back to a sign-in page). Is there a canonical or common way to achieve this on Google App Engine (Python API)? (Assume Django is not being used.) 回答1: Webapp framework, the simple web application framework that ships with GAE, does not