Hi,
On Sep 17, 3:35 am, Mother <[EMAIL PROTECTED]> wrote:
> So as per the comments init:
>
> # Attributes required in the top-level app for COMMENTS_APP
> REQUIRED_COMMENTS_APP_ATTRIBUTES = ["get_model", "get_form",
> "get_form_target"]
>
> I have this in my model.
>
> def get_model():
>     from django.contrib.comments.models import Comment
>     return Comment
>
> def get_form():
>     from django.contrib.comments.forms import CommentForm
>     return CommentForm
>
> def get_form_target():
>     return
> urlresolvers.reverse("django.contrib.comments.views.comments.post_comment")
>
> Now, is the idea that I import my own Comment model, or somehow change
> the model in that function?

This idea is for customizing your comments ie having your own comments
app. You create a django app (that you want to use for comments), then
you reference it in the settings.py by using COMMENTS_APP. Make sure
to have the three attributes above in the custom comments app
__init__.py.

That's it you are done. But let me warn you that there are still some
tickets that help make the process easier.

--
Cheers
Thejaswi Puthraya
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to