[Answered ]-Django and getting info from query string using handlers

2👍

Change the EditRecordHandler get method in something like this:

class EditRecordHandler(webapp.RequestHandler):    
    def get(self):
        myid = self.request.get('id')
        self.response.out.write(myid)

0👍

Please fell free to edit ..

in urls.py:

urlpatterns = patterns('',
    (r'^/edit_record/', EditRecordHandler),
)

use request.method == ‘GET’ and you forget (self,request):

class EditRecordHandler():    
    def get(self,request):
        if request.method == 'GET':
            myid = self.request.get('id')
👤iraycd

Leave a comment