Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Adds generic SEO fields for objects in your site

Project Description

SEO fields for objects of any model registered in admin.

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.

Release History

This version
History Node

0.4.7

History Node

0.4.6

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
django_easy_seo-0.4.7-py2.py3-none-any.whl
(17.3 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Sep 20, 2015
django-easy-seo-0.4.7.tar.gz
(8.3 kB) Copy SHA256 Hash SHA256
Source None Sep 20, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting