Hi Dave,
  I've tried putting it in the views code and I get the same result.

  My app is built on top of the appengine django helper, so it does
have that __init.py__ file.  I haven't bothered even looking at what's
in it as I've heard it's required but you can basically ignore it.

Cheers,
Pete

On Sep 11, 3:37 am, davemo <[EMAIL PROTECTED]> wrote:
> This is sort of unrelated, but if you take a look at some of the
> sample apps out there (rietveld, gae-django-guestbook) they seem to
> place the "Forms" into the views code. You could avoid the import
> problem by doing this.
>
> To address your problem in particular, do you have an __init.py__
> inside your root level "myapp" directory? If you don't python won't be
> able to import from within it.
>
> On Sep 10, 1: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 [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