google-app-engine

Google App Engine - Download Entire Live Application To Local

∥☆過路亽.° 提交于 2020-01-03 13:03:20
问题 Recently, I upload the web application in my local to Google App Engine c:\LocalProject>c:\appengine-java-sdk-1.2.2\bin\appcfg.cmd update . Unfortunately, I accidental delete the whole folder "LocalProject" in my local disk. Is it possible that I can recover all my stuff, by downloading from Google App Engine? 回答1: No. There are libraries you can include with your app to make the source code downloadable, but if you didn't do so when you uploaded your app, there's no way to download the

GCP Point Custom Domain to Specific App Engine Service

陌路散爱 提交于 2020-01-03 12:47:40
问题 I currently have an Google App Engine Flexible project with four services. And when I map my custom domain to my project using the documentation https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains, it automatically points to the default service which is not the frontend application. How do I map it to a different service. 回答1: You cannot map a certain (sub)domain to a certain service in the app-level custom domain mapping, mapping is done only at the app level (as a

Unable to use utf8mb4 character set with CloudSQL on AppEngine Python

 ̄綄美尐妖づ 提交于 2020-01-03 10:46:12
问题 I have set up a CloudSQL instance that I am attempting to use with my Django app on AppEngine. I've confirmed that the server is set to use utf8mb4 character set via the CloudSQL console for my database: utf8mb4 utf8mb4_unicode_ci If I connect directly with the mysql cli, I can successfully insert and read emojis. However, if I insert the same emoji characters through the Django admin it's just inserted as "? ? ? ?". I attempted to ensure the MySQLdb-python client is using utf8mb4 with:

What security issues need to be addressed when working with Google App Engine?

删除回忆录丶 提交于 2020-01-03 09:29:09
问题 I've been considering using Google App Engine for a few hobby projects. While they won't be handling any sensitive data, I'd still like to make them relatively secure for a number of reasons, like learning about security, legal, etc. What security issues need to be addressed when working with Google App Engine? Are they the same issues that other applications - like applications written in other languages or hosted in other ways - are faced with? Edit: I did some searching it looks like I

Uploading a static project to google app engines

£可爱£侵袭症+ 提交于 2020-01-03 09:28:10
问题 Disclaimer: I already asked here, but apparently off-topic. I want to set up a page using this bootstrap template and host it as a static website using the google appengine service. Inside the google_appengine directory, I created a folder page with the page data and the app.yaml : google_appengine [folder] ... dev_appserver.py appcfg.py ... page [folder] app.yaml public [folder] app.yaml has this as a content: application: coolmoon version: 1 runtime: python27 api_version: 1 threadsafe: yes

What happens to child datastore objects after deleting the ancestor?

僤鯓⒐⒋嵵緔 提交于 2020-01-03 09:07:10
问题 I want to understand the parent/child (ancestor paths) relationship found in the Google AppEngine datastore that wasn't mentioned in the online documentation. What happens to children objects when the parent is deleted? Do child objects also get deleted? Do they become orphaned without a parent? If so how would you query for them? Google Help Doc regarding Ancestor Paths: https://cloud.google.com/appengine/docs/go/datastore/entities#Go_Ancestor_paths Thanks! ~Todd 回答1: Child entities do not

What characters are allowed in a Google App Engine Key?

瘦欲@ 提交于 2020-01-03 07:31:45
问题 While testing my Google App Engine application, I search for links which include app engine keys. For example: /story/ag5yZXBsaWUtdGVzdGluZ3IMCxIFU3RvcnkY-w0M/ What characters are allowed in these keys? I had been using the regex [a-zA-Z0-9] , but it seems "-" is also allowed. What else? Is there a reference on this? I can't find it in the App engine docs. 回答1: Google App Engine keys are encoded using URL safe base 64 encoding (see The source code for the Key datastore type). 回答2: it's very

Partly update App Engine entity

懵懂的女人 提交于 2020-01-03 05:55:14
问题 I'm building a sync engine with App Engine and when I receive data from the client I want to store an object but I don't care if it already exists or not. It works nice today if I always send all properties from the client when updating. But I want... some internal properties not to be known by the client and still survive the update the client to be able to only send the changed values avoid fetching all objects before updating them as there can be quite few objects that need updates Do I

How to filter() for different items?

半城伤御伤魂 提交于 2020-01-03 05:52:07
问题 This is a follow up to my previous question. I am using the same model class Item(db.Model): ... glam = db.StringProperty() casual = db.StringProperty() speaking = db.StringProperty() and assume that I have 2 items and 1 is tagged "glam" the other tagged "speaking". If I filter like this query.filter("glam", "glam") query.filter("speaking"), "speaking") the filter returns none because this looks for 1 item tagged "glam" and "speaking". How do I filter for separate items? Update Item table may

App Engine PHP Wordpress Remote File Uploads

喜欢而已 提交于 2020-01-03 05:11:22
问题 So I just installed Wordpress for Google App Engine PHP - and it seems like I cannot change the site's static files from the back-end of the deployed site (For example, I have no option to "Add Plugin" and I get a flash error if I try to upload an image from media center). The SQL works fine - I can add text to pages ...but not images. Is this intentional? Am I supposed to add all my static files/plugins locally and then deploy them to App Engine? Apologies if this is a dumb question. 回答1: