I resolved my issue and decided to post the solution in case someone will 
need something similar. The thing is that Javier was right - mptt is not 
working. I also tried to switch to Google Cloud SQL. But at the end I found 
a simple solution that was all the time in front of me - 
django-threadedcomments app 
(http://code.google.com/p/django-threadedcomments/). The project page seems 
a bit abandoned, but I found this tutorial that helped a lot 
http://django-threadedcomments.googlecode.com/svn-history/r120/trunk/docs/tutorial.rst
 
. It worked for me, maybe that is not the best solution, but at least saves 
some time from implementing your own tree.

2012 m. gruodis 5 d., trečiadienis 16:00:20 UTC+2, Javier Guerra rašė:
>
> On Wed, Dec 5, 2012 at 3:04 AM, JG <[email protected] <javascript:>> 
> wrote: 
> > I found a lot of examples on the internet, but the thing is - I am also 
> > working with Google App Engine. 
>
> (disclaimer, i haven't developed on GAE, I've just read the specs a few 
> times) 
>
> yes, that's a problem.   In your specific example, the tutorial you 
> link uses Django-mptt, which uses aggregates, which aren't supported 
> by the datastore in GAE. 
>
> so, I see only three solutions: 
>
> - keep searching for a GAE-specific example.  I'm sure somebody 
> somewhere has done threaded comments on GAE... 
>
> - switch from datastore to Google Cloud SQL.  it's supposed to be 
> MySQL-compatible, so the Django ORM should work, no?  I haven't read 
> anywhere if that works or not, but IMHO it's worth a try.  unless 
> there's a cost difference?  again, i have no idea. 
>
> - develop your own.  In fact, hierarchical structures aren't a great 
> match for SQL storage, so non-obvious mappings (like MPTT) are needed. 
>  Google's datastore might (or might not) allow a more direct approach. 
>
> cheers, 
>
> -- 
> Javier 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1Ows-ZbAAFoJ.
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/django-users?hl=en.

Reply via email to