Hi Zeynel,
   Instead of "import model"  use "from model import User";  then
you'll be able to use User.all().


Robert







On Tue, Nov 30, 2010 at 16:09, Zeynel <azeyn...@gmail.com> wrote:
> Hello,
>
> I have hw.py, incoming.py and register.py and they all use models. I
> thought of putting them in model.py (like django) and import it. If I
> do that, of course, I need to use
>
> query = model.User.all()
>
> instead of
>
> query = User.all()
>
> Is this a good idea? Or is it better to have the models in each file?
>
> --
> 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-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
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-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to