Skip to content
SEO fields for objects of any model registered in admin
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
logo
seo
.gitignore
.landscape.yaml
AUTHORS.rst
LICENSE
MANIFEST.in
README.rst
setup.cfg
setup.py

README.rst

django-easy-seo

SEO fields for objects of any model registered in admin.

django-easy-seo

Setup

Either clone this repository into your project, or install with pip install django-easy-seo

You'll need to add seo as a LAST item to INSTALLED_APPS in your project's settings.py file :

INSTALLED_APPS = (
    ...
    'seo',  # must be last in a list
)

Then run ./manage.py syncdb to create the required database tables

Configuration

There is only one mandatory configuration option you need to set in your settings.py :

# Override / extend ModelAdmin classes for a given Models
SEO_FOR_MODELS = [
    '<app_name>.models.<ModelName>',
]

Usage

First of all, load the seo_tags in every template where you want to use it :

{% load seo_tags %}

Use :

{% seo '<title|keywords|description>' for object %}

or :

{% seo '<title|keywords|description>' for object as variable %}
{{ variable }}

Please see example application. This application is used to manually test the functionalities of this package. This also serves as a good example.

You need only Django 1.4 or above to run that. It might run on older versions but that is not tested.

You can’t perform that action at this time.