google-app-engine

Django App Engine: AttributeError: 'AnonymousUser' object has no attribute 'backend'

瘦欲@ 提交于 2020-01-13 09:09:34
问题 I am using djangoappengine. When I try create a new user, authenticate that user, and log them in, I get the following error AttributeError: 'AnonymousUser' object has no attribute 'backend' . My code is simple and looks like: user = User.objects.create_user(username, username, password) user.set_password(password) user.save() user = django.contrib.auth.authenticate(username=username, password=password) django.contrib.auth.login(request, user) I only get the following error on production and

Android to Appengine RPC Nullponter on server

房东的猫 提交于 2020-01-13 06:48:46
问题 I have a Appengine connected Andorid project, to enable RPC calls between the server and the Android device. When I'm doing calls on the GWT client everything works perfectly, but when I'm doing calls from the Android app the server throws this nullpointer exception. I'm making RPC calls with a Requestfactory. GAE version 1.5.2 [ERROR] Unexpected error java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768) at com.google.web.bindery

Trying to find a pure python integer linear programming solver with inequalities

守給你的承諾、 提交于 2020-01-13 06:47:21
问题 I have a program written in App Engine (python) and I want to use an integer linear programming solver in it. All solvers I could find seems to be written partly in C, so I would imagine they won't work in App Engine. Anyone knows of a pure python library that solves integer linear programming with inequalities? I managed to find this http://projects.scipy.org/scipy/ticket/1252 but it seems that it doesn't deal with inequalities. 回答1: This seems to do the trick: http://labix.org/python

How do I get appstats to work with webapp2 and extended routing on GAE?

白昼怎懂夜的黑 提交于 2020-01-13 06:26:12
问题 I'm trying to get Appstats to work on my GAE Python app. I'm using webapp2 with python 2.7. I've followed the instructions from https://developers.google.com/appengine/docs/python/tools/appstats#Setup which includes creating the appengine_config.py file: def webapp_add_wsgi_middleware(app): from google.appengine.ext.appstats import recording app = recording.appstats_wsgi_middleware(app) return app And adding the following lines to my app.yaml: builtins: - appstats: on The python app I wish to

How can I simply modify the path for the entire requests package within a libraries folder in my appengine project

独自空忆成欢 提交于 2020-01-13 06:10:05
问题 I've been working with AppEngine for a little while now and always have a bit of friction when using external libraries where I need to modify each import statement to reflect the fact that the library is not in the base directory of the project. For example, my directory structure might look like (with the requests library installed) /myapp/app.yaml /myapp/main.py /myapp/libraries/requests/packages/ /myapp/libraries/requests/__init__.py /myapp/libraries/requests/adapters.py etc... However

Is it possible to debug GWT anymore?

喜你入骨 提交于 2020-01-13 05:29:33
问题 Is it just me, or is it even possible to run/debug a GWT application anymore? A brand new install of the Google Plugin for Eclipse (Juno), create a new Web Application with GWT + GAE, run/debug. FAIL. This is on a Mac, with Chrome, Firefox and Safari. The browser plugin is incompatible with Safari and Firefox, says it's compatible with Chrome but always asks to reinstall it. Any ideas/tips? -Shane Update : Ok, so I went back to Firefox ESR 24 (https://www.mozilla.org/en-US/firefox

How do I share data between pages on Google App Engine

旧时模样 提交于 2020-01-13 05:16:29
问题 I'm a newbie programmer, working on my first web app (using App Engine), so forgive my ignorance. I have been modifying the Hello World program given by Google to try to make it do what I want. In their demo (http://code.google.com/appengine/docs/python/gettingstarted/templates.html) they have 2 classes that create 2 pages - one is the index.html, and the other handles a form, by putting the form data into a DB, and then redirecting back to the main page, which loads info from the DB. I would

How do I share data between pages on Google App Engine

冷暖自知 提交于 2020-01-13 05:16:07
问题 I'm a newbie programmer, working on my first web app (using App Engine), so forgive my ignorance. I have been modifying the Hello World program given by Google to try to make it do what I want. In their demo (http://code.google.com/appengine/docs/python/gettingstarted/templates.html) they have 2 classes that create 2 pages - one is the index.html, and the other handles a form, by putting the form data into a DB, and then redirecting back to the main page, which loads info from the DB. I would

google app engine: how to run different version

时光怂恿深爱的人放手 提交于 2020-01-13 04:53:47
问题 Suppose I uploaded another version (say, "version: 2" in file app.yaml ) of my Google App Engine application. Version 1 is still the default and version 2 is for testing. How do I run it then? 回答1: Once you upload a version on Appengine, you can switch between them easily. Say that your app name is myapp, currently running version 1. You also have uploaded a version called 2-testing. Your default app (with version 1) can be reached by accessing myapp.appspot.com If you wanted to access your

google app engine: how to run different version

坚强是说给别人听的谎言 提交于 2020-01-13 04:53:13
问题 Suppose I uploaded another version (say, "version: 2" in file app.yaml ) of my Google App Engine application. Version 1 is still the default and version 2 is for testing. How do I run it then? 回答1: Once you upload a version on Appengine, you can switch between them easily. Say that your app name is myapp, currently running version 1. You also have uploaded a version called 2-testing. Your default app (with version 1) can be reached by accessing myapp.appspot.com If you wanted to access your