.. _ref-extending:

=================================
Customizing `django-comments-xtd`
=================================

`django-comments-xtd` is extendable in the same way as the django-contrib-comments framework. Follow the next steps to extend `django-comments-xtd` with your own fields:

 1. Install django-comments-xtd and its dependencies.
 2. Enable the sites framework.
 3. Create the new application that extends django-comments-xtd.
 4. Create your new comment Model inheriting from `XtdComment`, and add the new fields.
 5. Create a new `forms.py` module and add a new form extending `XtdCommentForm`.
 6. Customize `XtdCommentForm`'s methods `get_comment_model` and `get_comment_create_data`.
 7. Create settings `COMMENTS_XTD_MODEL='mycomments.MyComment'` and `COMMENTS_XTD_FORM_CLASS='forms.MyCommentForm`.

