You need to import djangoforms unless you are using app-engine-patch. like this:
from google.appengine.ext.db import djangoforms as forms class MessageForm(forms.Form): message = forms.TextField() On Sep 10, 3:46 pm, Peter <[EMAIL PROTECTED]> wrote: > Hi folks, > I'm trying to post some data from a form and then do something with > it. But I'm hitting issues. I'm using the django version that comes > with appengine. > > My models.py has > > from django import forms > > class MessageForm(forms.Form): > message = forms.TextField() > > and my views.py has > > from myapp.models import MessageForm > > This causes the app to crash with the error message > > Exception Type: ViewDoesNotExist > Exception Value: Tried message in module myapp.views. Error was: > 'module' object has no attribute 'Form' > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---