I tried the Meta and DjangoForms and it still did not work.


On another attempt, I tried this with the Meta & djangoforms:

    id = int(self.request.get('id'))
    band_id = Band.getBandByID(id)
    query = Band.gql("WHERE ID = :1",
        'band_id')
    band_edit = query.get()
    self.response.out.write(template.render('editband.html',
                                                {'band_edit':
band_edit }))

which will render the page but not the form between the

        {% for band in band_band %} {% endfor %}

in the template and it is not displaying the Band.db entity
properties.

If I add :
    for band in band_edit:
      self.response.out.write(template.render('editband.html',
                                                {'band_edit':
band_edit }))

I then get the error:
TypeError: 'NoneType' object is not iterable

Which leads me to think that the id as band_id is not being passed to
the query.

Anyone?


--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to