Doing it right in Django - subclassing instead of hacking

Doing it right in Django - subclassing instead of hacking

I am using the threadedcomments module and need two changes: - an additional field on the ThreadedComment model - different fields on the form

I know the answer is to subclass but I'm not sure how to go about doing this - where does the code go?

How can I deploy a django appserver as an egg, running behind fastcgi?


How can I get Django to output bad characters instead of returning an error
As its not clear from you question.

Problems istalling django-1.0.2 on Windows XP
I am assuming you are talking about extending django.contrib.comments ..
How can i hook up WMD editor on my django forms?
Yes you have to subclass it.

How can I use Flex to access foreign-keyed fields in Django?
Create your own application, and all code (extended models, forms, views etc.) goes there.

Using Git For Community-Oriented Website Content Revision System
Reversing a ManyToMany relationship
Important things, you wont add django.contrib.comments in INSTALLED_APPS list, but add your comment application name(which you inherit from django.contrib.comments)..
Adding reports to Django's admin
Also you would need to add .
COMMENTS_APP = 'my_comment_app' 
to your Here is very good example for doing exactly what you want to do..

92 out of 100 based on 42 user ratings 242 reviews