I’m using a pretty specific set of tools and I’ve come across an error that I couldn’t find a solution to, so I hacked my way out of it. I’m using django-nonrel to run Django on App Engine, while preserving some important features, like the admin app. I’m also using a Google Apps account (xxxx@appdelegateinc.com) as my App Engine account and I do my development on a Mac. When I try to run python manage.py remote createsuperuser to create a new user on the App Engine hosted app, I get the following error:
google.appengine.tools.appengine_rpc.ClientLoginError: HTTP Error 403: Forbidden
I followed the traceback down to an App Engine SDK file which seems to not set a variable correctly. So I opened it up and hacked and got it working correctly.
edit
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py
And change the line:
account_type = "GOOGLE"
To
account_type = "HOSTED_OR_GOOGLE"
Here's the diff
/google/appengine/tools/appengine_rpc.py
206c206
< account_type = "GOOGLE"
---
> account_type = "HOSTED_OR_GOOGLE"
What if you could offload some of your computational work onto the visitors of your site? We thought it would be pretty cool to make a quick little app to test the theory out using Google App Engine.
We opted to use the MapReduce paradigm as made famous by Google. The workflow is like this:
<script src="http://bbmapreduce.appspot.com/client/wrapper/"></script>
It should be noted that was not written with security in mind and you can never trust the data that gets sent back from your visitors, but there are ways to make it more reliable, such as executing one function on multiple clients and checking the data returned against the rest which is not currently implemented. The other issue is that the jobs being submitted on this test site is completely open and thus prone to spam alert calls.
I am not responsible for any harm this causes you, your computer, or anyone who visits the URLs provided. This is simply for educational purposes.
Page 1 / 1
Try out Pocket Sentry, our iPhone motion-activated camera app and get emails when your pet enters the bathroom.
Matt Williamson
President, App Delegate Inc
Copyright © 2011 - App Delegate Inc - All rights reserved.