google-app-engine

Error 302 running cron and login:admin in app.yaml in google app engine

给你一囗甜甜゛ 提交于 2021-02-07 08:19:16
问题 I added login: Admin to app.yaml like documentation is described, but I still have a 302 erro when runing a task with cron in google app engine. I have this app.yaml runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: main.app login: admin And this cron.yaml cron: - description: "Dashboard" url: /processdate?from=2016-03-01&until=2016-03-31 schedule: every day 23:46 timezone: Europe/Madrid I obtain this error 0.1.0.1 - - [26/Oct/2018:00:49:40 +0200] "GET

Error 302 running cron and login:admin in app.yaml in google app engine

ε祈祈猫儿з 提交于 2021-02-07 08:17:39
问题 I added login: Admin to app.yaml like documentation is described, but I still have a 302 erro when runing a task with cron in google app engine. I have this app.yaml runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: main.app login: admin And this cron.yaml cron: - description: "Dashboard" url: /processdate?from=2016-03-01&until=2016-03-31 schedule: every day 23:46 timezone: Europe/Madrid I obtain this error 0.1.0.1 - - [26/Oct/2018:00:49:40 +0200] "GET

How to configure Memcache for Django on Google cloud AppEngine?

混江龙づ霸主 提交于 2021-02-07 08:16:56
问题 In my settings i have: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } and i have installed https://pypi.org/project/python-memcached/ Anything else needed? 回答1: The way to enable Memcache for Django on GCP depends on which product you are using (App Engine, Compute Engine, Kubernetes Engine) [1] Since you are using App Engine, it is built-in. You can find examples on how to use Memcache with GCP here. [2] [1] How to

How is console.developers.google.com different from appengine.google.com?

一个人想着一个人 提交于 2021-02-07 07:29:30
问题 Google Cloud has https://console.developers.google.com/ and App Engine has http://appengine.google.com. Are they interchangeable? Will http://appengine.google.com eventually become obsolete in favor of https://console.developers.google.com/? If I start using https://console.developers.google.com/ will I be unable to go back to http://appengine.google.com? 回答1: Jordan Fish from Google Cloud Platform Support gave me this answer: https://console.developers.google.com is the next generation

How is console.developers.google.com different from appengine.google.com?

眉间皱痕 提交于 2021-02-07 07:29:12
问题 Google Cloud has https://console.developers.google.com/ and App Engine has http://appengine.google.com. Are they interchangeable? Will http://appengine.google.com eventually become obsolete in favor of https://console.developers.google.com/? If I start using https://console.developers.google.com/ will I be unable to go back to http://appengine.google.com? 回答1: Jordan Fish from Google Cloud Platform Support gave me this answer: https://console.developers.google.com is the next generation

Find duplicates in app engine datastore

核能气质少年 提交于 2021-02-07 06:44:07
问题 I've some duplicated elements in my datastore (not the whole row, but most of the fields on it) in App Engine. What's the best way to find them? I've both integer and string fields that are duplicated (in case comparing one is faster than the other). Thanks! 回答1: An stupid but quick approach would be to take the fields you care about, concatenate them as a long string and store them as the key of an DB_Unique entity that references the original entity. Each time you do DB_Unique.get_or_insert

Find duplicates in app engine datastore

一曲冷凌霜 提交于 2021-02-07 06:44:06
问题 I've some duplicated elements in my datastore (not the whole row, but most of the fields on it) in App Engine. What's the best way to find them? I've both integer and string fields that are duplicated (in case comparing one is faster than the other). Thanks! 回答1: An stupid but quick approach would be to take the fields you care about, concatenate them as a long string and store them as the key of an DB_Unique entity that references the original entity. Each time you do DB_Unique.get_or_insert

GAE ERROR :- /bin/sh: 1: exec: gunicorn: not found

别等时光非礼了梦想. 提交于 2021-02-07 05:37:05
问题 I trying to deploy my app on GAE using their trial version. I was so far successful in creating an app.yaml with a custom settings for flexible environment with python 3.6. However, while deploying the app, the app builds successfully, however, I keep getting the following error Updating service [default] (this may take several minutes)...failed. ERROR: (gcloud.app.deploy) Error Response: [9] Application startup error: /bin/sh: 1: exec: gunicorn: not found Following is the folder hierarchy of

How to check if datetime is older than 20 seconds

和自甴很熟 提交于 2021-02-07 04:42:05
问题 This is my first time here so I hope I post this question at the right place. :) I need to build flood control for my script but I'm not good at all this datetime to time conversions with UTC and stuff. I hope you can help me out. I'm using the Google App Engine with Python. I've got a datetimeproperty at the DataStore database which should be checked if it's older than 20 seconds, then proceed. Could anybody help me out? So in semi-psuedo: q = db.GqlQuery("SELECT * FROM Kudo WHERE fromuser =

Can't shutdown app engine version. Keeps billing

為{幸葍}努か 提交于 2021-02-07 03:39:15
问题 I am not able to stop and consequently delete a app engine version. I have 3 different versions at the moment, under the same default service: gappa-v1 , which is currently serving 100% of the traffic mg-v1 , which is currently stopped 20170223t163224 I am able to stop, restart and delete all the versions but the 20170223t163224 version. I have tried everything, both from the Google Cloud Console, and the gcloud command-line tool. Interacting from the Google Cloud Console is kinda useless