Django

Code

Ticket #3781: add_ons.diff

File add_ons.diff, 1.1 kB (added by Simon G. <dev@simon.net.nz>, 2 years ago)
  • docs/add_ons.txt

    old new  
    99This code lives in ``django/contrib`` in the Django distribution. Here's a 
    1010rundown of the packages in ``contrib``: 
    1111 
     12.. admonition:: Note 
     13 
     14    Remember that to use these, you'll need to add the package (django.contrib.whatever)  
     15    to the ``INSTALLED_APPS`` in your ``settings.py`` file, and re-run ``manage.py syncdb``. 
     16 
    1217.. _"batteries included" philosophy: http://docs.python.org/tut/node12.html#batteries-included 
    1318 
    1419admin 
     
    157162    * Markdown 
    158163    * ReST (ReStructured Text) 
    159164 
    160 For documentation, read the source code in django/contrib/markup/templatetags/markup.py. 
     165To activate these filters, add ``'django.contrib.markup'`` to your ``INSTALLED_APPS`` 
     166setting. Once you've done that, use ``{% load markup %}`` in a template, and you'll 
     167have access to these filters. For more documentation, read the source code in  
     168django/contrib/markup/templatetags/markup.py. 
    161169 
    162170redirects 
    163171=========