I applied this patch:
http://code.djangoproject.com/attachment/ticket/8630/8630_r8782_admin.diffto
the contributed comments.
Then dded the Classes I used (basically copied and edited CommentForm) to my
app's models, and then put the get_model, get_form, and get_form_target in
the COMMENTS_APP's __init__.py, and it is working.

On Tue, Sep 16, 2008 at 8:56 PM, mo ther <[EMAIL PROTECTED]> wrote:

>
>
> On Tue, Sep 16, 2008 at 8:41 PM, Thejaswi Puthraya <
> [EMAIL PROTECTED]> wrote:
>
>>
>> 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.
>
>
> Yes that I understand.
>
>
>>
>>
>> That's it you are done. But let me warn you that there are still some
>> tickets that help make the process easier.
>
>
> How does that help me?
>
> Easier or possible?
>
> C'mon.
>
>
>>
>>
>> --
>> 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