Questions tagged [webapp2]

webapp2 is a lightweight Python web framework compatible with Google App Engine's webapp.

webapp2 is a lightweight Python web framework compatible with Google App Engine's webapp.

webapp2 extends webapp to offer better URI routing and exception handling, a full featured response object and a more flexible dispatching mechanism. It also includes sessions, internationalization, domain and subdomain routing, secure cookies and support for threaded environments.

webapp2 can also be used outside of Google App Engine, independently of the App Engine SDK.

References:

968 questions
-1
votes
1 answer

Returning a valid JSON object which is to be handled by JS promise

My intention is to return a list of entities in JSON format which is then handled by the client-side JS using Promises. I am returning a JSON object like this: from webapp2_extras import json class AllPostsJson(webapp2.RequestHandler): def…
puoygae
  • 573
  • 7
  • 19
-1
votes
2 answers

How to make localhost public for my device?

I made a webapp with HTML, CSS, Javascript and Java backend and whenever I run the index.html from a project on Netbeans I'm accessing the localhost:80. But I want to run this localhost on my Android. Of course I added the port 80 on my Firewall and…
Bob
  • 3
  • 3
-1
votes
1 answer

How to make a nested for loop in jinja2, python 2.7 without showing double results

Helo. I am trying to list all the comments from one user and a topic that the comment belongs to, but i get double values in comment_list.html. I think i am not nesting it properly. My Python hadler is following: class…
luckie
  • 9
  • 4
-1
votes
1 answer

Google AppEngine - updating my webapp after deploy

friends! I'm fairly new to web app world and I have a question regarding Google AppEngine functions. I've installed the Launcher on my machine and signed up for the online platform (Python). I've added my project folder in the Launcher and hit…
Valentina Morigi
  • 129
  • 1
  • 1
  • 4
-1
votes
1 answer

Google App Engine - JSON Serialization of GeoPt data

I am trying to create an API for my web app but I keep getting an error when trying to load GeoPtProperty to JSON. I tried converting GeoPt data into JSON object but it didn't work. class Post(ndb.Model): content = ndb.StringProperty(required =…
Young
  • 419
  • 3
  • 19
-1
votes
1 answer

Google API Engine, development on Java and Python

Could I run my web app on Java and Python? I mean one portion of web service on Java and other part on Python? Problem I am trying to solve is that on Java I can't find a solution for custom user authentication, however webapp2 for Python supports…
antohoho
  • 950
  • 2
  • 17
  • 37
-1
votes
1 answer

modifying request parameter before forwarding

Is there any way in a Google App Engine handler (Python - Webapp2) to modify a request parameter before redirecting it? I am actually interested in changing the contend of a posted file (multipart_encode). for instance: class…
Andrea Sindico
  • 7,358
  • 6
  • 47
  • 84
-1
votes
1 answer

__init__() takes exactly 1 argument (3 given) Google Appengine

class RPCHandler(webapp2.RequestHandler): def __init__(self): webapp2.RequestHandler.__init__(self) self.methods = ConceptsRPCMethods() def get(self): func = None action = self.request.get('action') …
Noorhan Abbas
  • 31
  • 1
  • 5
-1
votes
1 answer

how to upload image using google cloud client library on cloud storage in python?

i want to upload image on cloud storage. I wrote following code to upload on GCS. class FormHandler(webapp2.RequestHandler): # form to upload image def get(self): upload_url =…
Sunil Kumar
  • 655
  • 1
  • 7
  • 12
-1
votes
1 answer

ImportError: cannot import name parsedate_tz - jinja2

I have been working with Google App Engine python version to create very simple websites. It was working fine for a while but then recently I have been getting the following error: bad runtime process port [''] Traceback (most recent call last): …
sshashank124
  • 31,495
  • 9
  • 67
  • 76
-1
votes
1 answer

How to send request for facebook authentication to the user from google app engine (python)?

I am a newbie to the googple-app-engine so please bear with my stupid question if you find it that way. I wanted request handler for user's facebook account(authentication code) to access its friend's list through python2.7 with webapp2 framework…
-1
votes
1 answer

AttributeError: 'unicode' object has no attribute 'pop'

I have this piece of python code in gae. def post(self): cases=self.request.get('cases') while cases: logging.info("cases: %s " % cases) case=cases.pop() Which produces this log. INFO 2012-09-19 20:23:50,690…
zerowords
  • 2,915
  • 4
  • 29
  • 44
-1
votes
3 answers

google app engine (python27) fetch request url

I have been trying to get the request url as follows import webapp2 class MainPage(webapp2.RequestHandler): def get(self): print self.request.get('url') app = webapp2.WSGIApplication([('/.*', MainPage)], debug=True) when the request…
none
  • 11,793
  • 9
  • 51
  • 87
-1
votes
1 answer

Database migration tool for webapp2

I'm new to webapp2 and GAE. I'm wondering, do I must declare all database tables necessarily for my models? I do not mind writing SQL by hand. But I do not want reinvent the wheel. Is there any db migration tool for Webapp2? EDIT I have a…
I159
  • 29,741
  • 31
  • 97
  • 132
1 2 3
64
65