.. Django-seo documentation master file, created by sphinx-quickstart on Thu Jul 8 18:29:56 2010. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. ========================== Django-seo's documentation ========================== Installation: ============= 1. Put ``seo`` as LAST item to your ``INSTALLED_APPS`` in your ``settings.py`` within your django project. 2. Sync your database:: ./manage.py syncdb Usage: ====== In settings.py: `````````````` Add names of ModelAdmins to be override:: SEO_FOR_MODELS = [ '.models.', ] In template: `````````````` First of all, load the seo_tags in every template you want to use it:: {% load seo_tags %} Use:: {% show_seo for %} Or:: {% get_seo for as %} {{ }} Example: ======== ``settings.py``:: INSTALLED_APPS = ( ... 'seo', ) SEO_FOR_MODELS = [ 'item.models.Item', ] ``templates/object.html``:: {% load seo_tags %} {% show_seo title for item %} {% show_seo keywords for item %} {% show_seo description for item %} {{ item.content }} {% get_seo title for item as seo_title %}

{{ seo_title }}