Anyone have an idea what is going wrong?

On Sep 16, 8:01 am, Peter <[EMAIL PROTECTED]> wrote:
> Still getting the same problem with the different import.
>
> I've put my code athttp://pastebin.com/m662c6d62.
>
> There's not a lot of code there, so hopefully you pros will easily
> spot the problem.
>
> Cheers,
> Pete
>
> On Sep 12, 6:54 pm, dar <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to