Jernej Jerin
Jernej Jerin

Reputation: 3399

Django Forms API in GAE SDK 1.7.4

I have read under SDK release notes 1.7.3 that GAE supports Django 1.4. I know that Django models can't be used in GAE as we have Google's own models. But what about Django Form API, particularly displaying a form using a template? Can that be used in SDK 1.7.4?

Upvotes: 1

Views: 246

Answers (2)

dragonx
dragonx

Reputation: 15143

While you can't use django model forms, GAE provides a forms library that provides similar functionality for db.Model based models.

https://developers.google.com/appengine/articles/djangoforms

I'm not sure if there's an equivalent for ndb.

Upvotes: -1

Daniel Roseman
Daniel Roseman

Reputation: 599610

Yes, of course you can use the form API and display it in the template. But what you can't do with plain Django on GAE is build a modelform automatically from a db.Model or ndb.Model. You have to use plain forms, defining the fields and setting the data back to the model entity manually.

Upvotes: 4

Related Questions