Django’s comments framework¶
Django’s comment framework has been deprecated and is no longer supported. Most users will be better served with a custom solution, or a hosted product like Disqus.
The code formerly known as django.contrib.comments is still available in an external repository.
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.
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 migrate 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 the available 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.