Django’s comments framework¶
Django includes a simple, yet customizable comments framework. The built-in comments framework can be used to attach comments to any model, so you can use it for comments on blog entries, photos, book chapters, or anything else.
If you used to use Django’s older (undocumented) comments framework, you’ll need to upgrade. See the upgrade guide for instructions.
Quick start guide¶
To get started using the comments app, follow these steps:
Install the comments framework by adding 'django.contrib.comments' to INSTALLED_APPS.
Run manage.py syncdb so that Django will create the comment tables.
Add the comment app’s URLs to your project’s urls.py:
urlpatterns = patterns('', ... (r'^comments/', include('django.contrib.comments.urls')), ... )
Use the comment template tags below to embed comments in your templates.
You might also want to examine Comment settings.
Having trouble? We'd like to help!
- Try the FAQ — it's got answers to many common questions.
- Search for information in the archives of the django-users mailing list, or post a question.
- Ask a question in the #django IRC channel, or search the IRC logs to see if it has been asked before.
- If you notice errors with this documentation, please open a ticket and let us know! Please only use the ticket tracker for criticisms and improvements on the docs. For tech support, use the resources above.