On Apr 2, 12:26 pm, knight <alexar...@gmail.com> wrote: > 1.) I get error: "'Query' object has no attribute 'all'" on line 59 in > views. > As I understand it's something to do with the fact that GAE queryset > is different from django queryset. > How can I fix that?
You've mixed two different model APIs. Your models seem to be written in Django's API, but your views seem to use App Engine's model API. If you want to use Django's API you should rewrite your views according to Django's API and take a look at the djangoappengine backend for Django-nonrel: http://www.allbuttonspressed.com/projects/djangoappengine If you want to use App Engine's model API instead you should rewrite your models and read the App Engine documentation. > 2.) If I have 'search' in my request.GET I also fall on line 54 in my > views. > This is because I can't search by Q object in GAE, I guess. > How can I fix that? You can't use your search function on App Engine. There is no "icontains" query equivalent on App Engine. Instead, you should take a look at nonrel-search which works with Django-nonrel: http://www.allbuttonspressed.com/blog/django/2010/03/Nonrel-search-released Bye, Waldemar Kornewald -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.