Adding comments
Index > Inicio
How to add comments to PyLucid
If you want to add "comments" model that already come with Django, here you will find some help. First, will list all steeps I followed, the will comment (if it's needed). Finally, the url in django site with documentation about comments.
- Add to INSTALLED_APPS, in settings.py, django.contrib.comments
- Add from django.contrib.comments.models import FreeComments to url.py Add { % load comments %} to the template code in wich you want to add comments
- Add SITE_ID=1 (or wherever number you have in your db) in settings.py file
- To get the form, where you can add a comment to the current page: [% free_comment_form for PyLucid.page PAGE.id %]
- You have to create free_preview.html and posted.html in /pylucid/django/contrib/comments/templates/comments . You can get examples in the django explanation page about comments.
http://code.djangoproject.com/wiki/UsingFreeComment
permalink