For now though, your suggestion of a hand-rolled solution sounds like the way I need to go. Thanks for the advice.
-Phil
On 11/05/06, Waylan Limberg <[EMAIL PROTECTED]> wrote:
On 5/11/06, Phil Powell <[EMAIL PROTECTED]> wrote:
> Thanks for the clarification - always useful while the documentation is in a
> state of flux.
>
> I've now got the front-end comments working as expected, and I'm mightily
> impressed with the ease of integration.
>
> I guess my early query was erring towards a (false) expectation that the
> admin would provide me with advanced options for my custom models - I'd
> anticipated that there would be advanced options added to each edit page, to
> allow me to administer things like comment activation on individual objects.
> On reflection, that would require updates to every model I expect. A case
> of me expecting a little too much from the system ;)
>
> Does anybody know of any plans / efforts towards that kind of mechanism
> though? Would be very useful.
>
Well, the comments app would have to be installed and your templates
would need to include the the proper tags, perhaps wrapped in an if
tag. Then, with an 'allow_comments' field in your model, you could
turn comments on or off from the admin. Even if there was a practical
way to automate the model related stuff, you would still need to tell
the template where and how to display the comments so complete
automation is not really practical.
> -Phil
>
>
> On 10/05/06, Wilson Miner < [EMAIL PROTECTED] > wrote:
> >
> > With comments installed you can use the comments template tags to
> > attach a comment thread to any object in the template.
> >
> > For example, for a hypothetical blog post, the template code to get
> > the list of free comments for the object might look like this:
> >
> > {% load comments %}
> > {% get_free_comment_list for blog.posts object.id as comment_list %}
> >
> > There's also a templage tag for spitting out the form for posting a
> > comment to that object:
> >
> > {% free_comment_form for blog.posts object.id %}
> >
> > You can find out more about how the comment tags work in the
> > templatetags library in django.contrib.comments:
> >
> http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/templatetags/comments.py
> >
> > On 5/10/06, Phil Powell <[EMAIL PROTECTED]> wrote:
> > > HI all,
> > >
> > > I'm a relative newbie to django, but so far I'm mightily impressed
> > > (particularly with the speed of development).
> > >
> > > I've just run into my first serious problem when trying to get comments
> > > functioning though. Here's what I've done:
> > >
> > > added 'django.contrib.comments' to my INSTALLED_APPS
> > > run 'python manage.py install comments'
> > > run 'python manage.py syncb'
> > >
> > > When I'm looking in admin, I can see the new 'Comments' and 'Free
> comments'
> > > sections, and there are advanced options for flatpages, but I can't see
> > > anything which allows me to administer comments for my models. Am I
> missing
> > > something completely obvious? Or have I missed out a step?
> > >
> > > Thanks in advance.
> > >
> > > -Phil
> > >
> > > >
> > >
> >
> >
> >
> >
>
>
> >
>
--
----
Waylan Limberg
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---