google-app-engine

Storing song, artist and album data on App Engine

做~自己de王妃 提交于 2020-01-03 05:04:19
问题 I need to store information on artists, albums and songs in Google App Engine for a project I'm working on. The information is meta data taken from a directory of MP3s (using Python) that needs to be sent to App Engine for display to users. Along with the meta data, the song's path will need to be stored. Currently while scanning I'm storing the data in an list of dictionaries named Artists, each artist dictionary has a name and a list of Album dictionaries and each Album dictionary has a

How to upload a file using Django and Google App Engine Blobstore API

孤者浪人 提交于 2020-01-03 04:53:12
问题 I have an app I am developing using: Django 1.5 Google App Engine Google Cloud SQL Python 2.7.5 As using Cloud SQL I am using the pure Django not the no-rel version making full use of the Django ORM. In the admin part of the app I want to have a form to upload a csv file using GAE Blobstore API. What I want to achieve is the uploading of the file to the Blobstore and the Blob Key referencing this uploaded file to be saved in my model. How would I go about doing this? Thanks for your help. 回答1

How to fix google cloud ssl issue

喜夏-厌秋 提交于 2020-01-03 04:48:13
问题 I pointed a new custom domain to a Google App Engine Standard Environment project and edited the DNS records per Google's instructions, and it seems to be redirected properly. When I go to www.mydomain.com with its supposedly activated certificate, I still get connection is not secure in the browser. If I go to mydomain.com it gets redirected to www.mydomain.com with the same result. But when I directly enter https ://www.mydomain.com it display the website and with connection is secure. Let

How to stop execution after self.redirect

我的梦境 提交于 2020-01-03 04:44:32
问题 How to stop execution after self.redirect in request initilization? The method redirect does not stop/halt script execution. My initilizer method is called but the process continues into method AnswerHandler.get() but self.user is None because user is not logged. class BaseRequestHandler(webapp.RequestHandler): def __init__(self): self.user = None def initialize(self, request=None, response=None): super(BaseRequestHandler,self).initialize(request, response) user = users.get_current_user() if

using https sparingly in my GAEJ app

馋奶兔 提交于 2020-01-03 04:42:12
问题 I have a GAEJ application that until now hasn't had to deal with sensitive data. For that reason it's been happily running under http:// I am using GWT-RPC for my client server calls. However I now want to start storing customer names and addresses, for which I'd like to start using https. I understand the limitation that it has to use the https://www.xxxxx.appspot.com/ domain. My question is how can I create a sub-section of my site that only deals with client-senstive data, leaving the rest

Django nonrel Query confusion

可紊 提交于 2020-01-03 04:29:06
问题 I'm creating a practice django-nonrel project hosted on Google AppEngine to get some familiarity with Django and the AppEngine Platform, but am running into a perplexing query issue. Here is my models.py: class Character(models.Model): name = models.CharField(max_length=200) url_name = models.CharField(max_length=200) def save(self, *args, **kwargs): self.url_name = self.name.replace(" ", "-").lower() super(Character, self).save(*args, **kwargs) # Call the "real" save() method. def __unicode_

bulkloader not importing ndb.model

不想你离开。 提交于 2020-01-03 04:24:09
问题 I am still new to Python and GAE. I have an application on local server that is running just fine. I can add entity to my datastore, I can view my website, etc: everything is fine. Now I am trying to use bulkloader to add entities to my datastore. I followed the tutorial at https://developers.google.com/appengine/docs/python/tools/uploadingdata. My loader is below: from google.appengine.ext import ndb from google.appengine.tools import bulkloader import my_model class ArticleLoader(bulkloader

javax.el.ExpressionFactory Error when running Spring Boot Application on Google App Engine Standard

☆樱花仙子☆ 提交于 2020-01-03 04:17:07
问题 I am trying to deploy my Spring Boot application on Google App Engine, however I receive the following error logs when attempting to call any of the APIs associated with the app. Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:68) at org.eclipse.jetty.util.component

Assigning static IP address to GAE python project

荒凉一梦 提交于 2020-01-03 03:58:05
问题 I have several python GAE projects that do not show up with gcloud compute instances list . I did manage to reserve an IP address which shows in gcloud compute addresses list . I've explored the Cloud interface and read docs https://cloud.google.com/compute/docs/instances-and-network and I am still at a loss how to make the app originate requests from a static IP address. 回答1: Ok, it doesn't look possible after eventually finding https://cloud.google.com/appengine/kb/#static-ip Thanks Google!

google app engine - permission denied error

喜你入骨 提交于 2020-01-03 03:42:04
问题 The problem my appication won't update on the dev server or the live server unless I do step 3 (below), every single time. Otherwise, I will get permission problems as shown below e2016-01-08 12:47:58,781 ERROR appcfg.py:2438 An error occurred processing file '': HTTP Error 403: Forbidden Unexpected HTTP status 403. Aborting. Error 403: --- begin server output --- You do not have permission to modify this app (app_id=u's~project-name'). --- end server output --- I'd ideally like to test just