title: Adding django-pagedown to Django 1.5 Blog Comments
body: <p>I'd like to add <code>django-pagedown</code> to my site's blog. I have a site, and an application called blog, built with Django, and I've implemented the built-in comments. These work just fine but I'm now trying to get <code>django-pagedown</code> to work in the comments. For example, if a user comments on one of my articles, I would like to be able to support markdown so users could comment with code snippets or formatting without using HTML (which I probably don't want to support).</p>
  
  <p>I installed django-pagedown successfully with pip:</p>
  
  <p><code>pip install django-pagedown</code></p>
  
  <p>I added it to my <code>INSTALLED_APPS</code> section in <code>settings.py</code> and collected static files:</p>
  
  <pre><code>INSTALLED_APPS = (
      ...
      'pagedown',
      ...
  )
  </code></pre>
  
  <p><code>python manage.py collectstatic</code></p>
  
  <p>Something happened, because when I added this code to my <code>blog/admin.py</code> file the admin post preview window appeared:</p>
  
  <pre><code>...
  from pagedown.widgets import PagedownWidget, AdminPagedownWidget
  from django.db import models
  ....
  
  class PostAdmin(admin.ModelAdmin):
      ...
      formfield_overrides = {
          models.TextField: {'widget': AdminPagedownWidget },
      }
      ...
  </code></pre>
  
  <p>Since I'm not very familiar with Django yet, the docs at:</p>
  
  <p><a href="https://github.com/timmyomahony/django-pagedown" rel="nofollow">https://github.com/timmyomahony/django-pagedown</a></p>
  
  <p>aren't enough for me to fully understand how it's implemented. Basically, I want to add this functionality to the user comments section in the blog.</p>
  
  <p>I'd like to be able to accomplish this without making custom forms and just using the built-in comments in Django. Is this possible?</p>
  
  <p>I was able to get this working but ended up going with <a href="http://disqus.com/" rel="nofollow">Disqus</a> because it has great functionality and is simple to set up and moderate.</p>