My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members

Now on GitHub

This project has been moved to github, where a completely rewritten version is available:

https://github.com/willhardy/django-seo

Old Introduction

Provides a set of tools for managing Search Engine Optimisation (SEO) for Django sites.

Currently, this app provides a centralised (and possibly denormalised) store for META tags and page title. Any page or object on a site can be linked.

If an object is linked, it's own store of meta information is synchronised and the path is automatically updated via signals.

Installation

  1. Install the seo directory somewhere in your python path
  2. Add 'seo' to INSTALLED_APPS
  3. If you would like to reference objects, define SEO_MODELS in settings as a list of model or app names eg ('flatpages.FlatPage', 'blog',)
  4. Add 'seo.context_processors.seo' to TEMPLATE_CONTEXT_PROCESSORS and reference seo_meta_data or seo_meta_data.title, seo_meta_data.description and seo.meta_data.keywords in your (base) templates.

How It Works

Each MetaData object can take a url path or a database object (generic foreign key). If the object defines get_absolute_url, the path is automatically set, and if the object defines meta_description or meta_keywords, those too are synchronised.

Users can edit the meta data through the objects admin (the relevant MetaData object is synchronised using the post_save signal), or edit all the MetaData objects at once (the relevant object is synchronised by overriding save()).

A context_processor adds meta_description, meta_keywords and meta_title to the context, allowing you to put these into your <head>.

Powered by Google Project Hosting